LaTeXML The Manual

Chapter 2. Using LaTeXML

The main commands provided by the LaTeXML system are

latexml

for converting TeX sources to XML.

latexmlpost

for various postprocessing tasks including conversion to HTML, processing images, conversion to MathML and so on.

The usage of these commands can be as simple as

latexml doc.tex | latexmpost --dest=doc.xhtml

to convert a single document into HTML, or as complicated as

latexml --dest=A.xml doca
latexml --dest=B.xml docb

latexmlpost --prescan --dbfile=my.db --dest=A.xhtml A
latexmlpost --prescan --dbfile=my.db --dest=B.xhtml B

latexmlpost --noscan --dbfile=my.db --dest=A.xhtml A
latexmlpost --noscan --dbfile=my.db --dest=B.xhtml B

to convert a whole set of documents into a complete site.

How best to use the commands depends, of course, on what you are trying to achieve. In the next section, we'll describe the use of latexml, which will be sufficient if the XML representation is what you want, or if you intend to carry out any further processing with your own XML-tools. The following sections consider a sequence of successively more complicated postprocessing situations, using latexmlpost, in which one or more TeX sources can be converted into one or more web documents or a complete site.

Contents