# Converting XML+MathML to TeX

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

MathML and TeX play a complementary role as formats for representing mathematics. MathML is ideal for displaying formulas in Web pages, while TeX is a superior solution for creating high-quality printed output. Ideally, an author should be able to switch easily between TeX and MathML, going back and forth between the two formats, as needed.

In the majority of cases, authors will be translating existing TeX and LaTeX documents for display on the Web. Some of the tools available for this type of translation were described under Converting complete documents. However, there are also situations in which the reverse transformation, that is converting MathML into TeX, can be useful. This allows authors to use TeX as a formatting engine for typesetting mathematical documents that were originally created for display on the Web. In this section, we briefly look at some techniques for converting MathML equations, either individually or embedded in another XML document type (such as XHTML), into TeX.

<< back | next >> |

**Copyright © CHARLES RIVER MEDIA, INC., Massachusetts (USA) 2003**

Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "The MathML Handbook" is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.

CHARLES RIVER MEDIA, INC., 20 Downer Avenue, Suite 3, Hingham, Massachusetts 02043, United States of America