Funky Town
Funky Town

Reputation: 1

Java Latex to MathML converter

is there a library like MathJax but for Java? I need to convert Latex to MathML or HTML, but I can't find a library that works as well

Just like this.

Input:

\frac{\sum (r_{i-5})}{N}

Output:

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mfrac> <mrow> <mo data-mjx-texclass="OP">∑</mo> <mo stretchy="false">(</mo> <msub> <mi>r</mi> <mrow data-mjx-texclass="ORD"> <mi>i</mi> <mo>−</mo> <mn>5</mn> </mrow> </msub> <mo stretchy="false">)</mo> </mrow> <mi>N</mi> </mfrac> </math>

It is all that I need) I found Snuggletex, but it doesn't work good for some formulas

Upvotes: 0

Views: 29

Answers (0)

Related Questions