views:

81

answers:

2

Do you know any open source tools or libraries (preferably Java, but that's not a strict requirement) in the GNU/Linux world that convert mathematical equations in LaTeX syntax to Content MathML or OpenMath?

I need to convert tons of equations in batch mode, so I'm not looking for interactive apps.

EDIT My focus is on the equations' semantics, so I cannot use Presentation MathML (unless there's a converter from Presentation MathML to Content MathML).

Thanks in advance!

+1  A: 

Have a look over here, where you can find a perl version.

phimuemue
LaTeXMathML apparently converts to **Presentation MathML** and I'm looking for a converter to **Content MathML** (or another format focused on semantics, e.g. OpenMath).Nevertheless, I didn't know LaTeXMathML, it'll be useful to me in other circumstances, thanks for the link!
Bolo
+1  A: 

This might be what you are looking for: SnuggleTeX

From the site:
SnuggleTeX is a 100% Java library for converting (a reasonable subset of) LaTeX into XHTML + MathML.

SnuggleTeX can attempt to convert input LaTeX to Content MathML by first creating Enhanced Presentation MathML and then processing that. In many ways, this part of the process is relatively simple since most of the semantic structure has already been inferred (though might not necessarily make any sense).

tstrokes
Excellent! Thanks a lot!
Bolo