用 Java 显示花哨的方程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/456002/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Displaying fancy equations with Java
提问by Ryan
I'm working on a Java applet that needs to display "fancy" equations. Is there any Java renderer for MathML or LaTeX that's open source? Ideally it would be a pure Java solution that doesn't use JNI.
我正在开发一个需要显示“花哨”方程的 Java 小程序。是否有开源的 MathML 或 LaTeX 的 Java 渲染器?理想情况下,它将是一个不使用 JNI 的纯 Java 解决方案。
Ideally it would also allow to animate the generated glyphs (e.g. animating adding a constant to both sides of a equation, lines going through terms for cancellation, etc.)
理想情况下,它还允许对生成的字形进行动画处理(例如,将一个常数添加到等式的两侧、通过取消项的行等进行动画处理)
回答by axelclk
I know these libraries for Java:
我知道这些 Java 库:
JEuclid(MathML renderer; Apache License)
JLatexMath(Latex renderer; GNU License) improved JMathTeX
JMathTeX(Latex renderer; GNU License)
HotEqn(Latex renderer; GNU License ?)
SnuggleTex(Latex renderer; BSD License)
JEuclid(MathML 渲染器;Apache 许可证)
JLatexMath(Latex 渲染器;GNU 许可证)改进了JMathTeX
JMathTeX(乳胶渲染器;GNU 许可证)
HotEqn(乳胶渲染器;GNU 许可证?)
SnuggleTex(乳胶渲染器;BSD 许可证)
For the animation part of your question, you can look at these projects:
对于问题的动画部分,您可以查看以下项目:
DragMathequation editor (Swing interface; GNU License)
Mirai Calccalculator (SWT interface; GNU License; uses JMathTeX)
DragMath方程编辑器(Swing 界面;GNU 许可证)
Mirai Calc计算器(SWT 接口;GNU 许可证;使用 JMathTeX)
For a web interface you can also use the jsMath JavaScriptor it's successor Mathjaxlibrary as a Latex/MathML renderer.
对于 Web 界面,您还可以使用jsMath JavaScript或其后继Mathjax库作为 Latex/MathML 渲染器。

