2008-12-07
December 7, 2008
Free software tools for converting LaTeX documents to XHTML+MathML:
TeX4ht supports conversion to (X)HTML, MathML, OpenDocument, and DocBook.
The following command will convert filename.tex to XHTML with MathML:
htlatex filename "xhtml,mathml" " -cunihtf" "-cvalidate"
TeX4ht is available in the Debian package
tex4ht
.Hermes is a grammar-based translator from LaTeX to Unicode-encoded XML+MathML+metadata.
Hermes follows the steps below, in the specified order:
- semantically seeds a copy of your TeX source
- lets the TeX program do its job (texing) on this semantically enriched source
- parses the resulting semantic dvi
- generates the XML reference document, a semantic XML reflection of your TeX source.
Some examples are provided here. In particular, there is a collection of articles from arxiv-math that were translated to XHTML+MathML.
LXir is a tool to convert LaTeX documents to XML. The documentation is in French (which I cannot read) but it does mention XHTML and MathML. I haven’t quite gotten it to compile yet, but it looks interesting.