LaTeXML A LaTeX to XML Converter


If you’re lucky, all that should be needed to convert a TeX file, mydoc.tex to XML, and then to XHTML+MathML would be:

   latexml --dest=mydoc.xml mydoc
   latexmlpost -dest=somewhere/mydoc.xhtml mydoc.xml

This will carry out a default transformation into XHTML+MathML. If you give the destination extension with html, it will generate HTML+images.

If you’re not so lucky, or want to get fancy, well …dig deeper:

LaTeXML Manual

Overview of LaTeXML ().


describes the latexml command.

latexmlpost command

describes the latexmlpost command for postprocessing.