# Rendering MathML in LaTeX?

I have MathML that I need to render in my LaTeX document. Is there a recommended way of doing so?

So far, from googling, I've found MathParser - a Java converter. But I was hoping there might be a better way to do it.

-
How elaborate are the MathML fragments that you need to render? It might be possible to write a simple converter if they only use a limited subset of MathML. –  Bruno Le Floch Jan 24 '12 at 23:28
@BrunoLeFloch Are MathML and LaTeX similar enough to easily write a simple converter for? It may be complex fragments (data from a client) but it might still be manageable to write one. –  mifrai Jan 25 '12 at 0:27
Is it content math or presentation mathml –  Aditya Aug 26 '13 at 14:09

You can get TeX to parse the MathMl, see for example xmltex, http://anorien.csc.warwick.ac.uk/mirrors/CTAN/help/Catalogue/entries/xmltex.html which comes with some mathml setup, however I wouldnt do it that way these days, I'd convert the MathML using XSLT, see for example pmml2tex which is available on googlecode http://code.google.com/p/web-xslt/wiki/Overview

-

I had the most success with xsltml: http://xsltml.sourceforge.net

-