用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 (乳胶渲染器; GNU许可证)改进了 JMathTeX
JLatexMath (Latex renderer; GNU License) improved JMathTeX
JMathTeX (Latex渲染器; GNU许可证)
JMathTeX (Latex renderer; GNU License)
HotEqn (Latex ren derer; GNU License?)
HotEqn (Latex renderer; GNU License ?)
SnuggleTex (乳胶渲染器; 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)
对于Web界面,您还可以使用 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屋!