用 Java 显示花哨的方程 [英] Displaying fancy equations with Java
问题描述
我正在开发一个需要显示花哨"方程的 Java 小程序.是否有开源的 MathML 或 LaTeX 的 Java 渲染器?理想情况下,它将是一个不使用 JNI 的纯 Java 解决方案.
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.
理想情况下,它还允许对生成的字形进行动画处理(例如,对等式两侧添加常量、通过取消项的行等进行动画处理)
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.)
推荐答案
我知道这些 Java 库:
I know these libraries for Java:
JEuclid(MathML 渲染器;Apache 许可)
JEuclid (MathML renderer; Apache License)
JLatexMath(Latex 渲染器;GNU 许可)改进了 JMathTeX
JLatexMath (Latex renderer; GNU License) improved JMathTeX
JMathTeX(Latex 渲染器;GNU 许可证)
JMathTeX (Latex renderer; GNU License)
HotEqn (Latex 渲染器;GNU 许可证?)
HotEqn (Latex renderer; GNU License ?)
SnuggleTex(Latex 渲染器;BSD 许可证)
SnuggleTex (Latex renderer; BSD License)
对于您问题的动画部分,您可以查看以下项目:
For the animation part of your question, you can look at these projects:
DragMath 方程编辑器(Swing 界面;GNU 许可)
DragMath equation editor (Swing interface; GNU License)
Mirai Calc 计算器(SWT 接口;GNU 许可;使用 JMathTeX)
Mirai Calc calculator (SWT interface; GNU License; uses JMathTeX)
对于网络界面,您还可以使用 jsMath JavaScript 或者它的后继 Mathjax 库作为 Latex/MathML 渲染器.
For a web interface you can also use the jsMath JavaScript or it's successor Mathjax library as a Latex/MathML renderer.
这篇关于用 Java 显示花哨的方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!