Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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
add comment

2 Answers 2

up vote 7 down vote accepted

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

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.