World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0041318226
Reproduction Date:

Title: LaTeXML  
Author: World Heritage Encyclopedia
Language: English
Subject: REVTeX, Powerdot, MathML
Publisher: World Heritage Encyclopedia


LaTeXML converts LaTeX documents to XML, HTML and EPUB.[1][2][3]


LaTeXML's primary output format is an XML representation of (La)TeX's document model. A postprocessor can convert these XML documents into other formats such as HTML with mathematical formulas as images or XHTML, HTML5, and EPUB with formulas as MathML. Compared to other LaTeX-to-XML processors, LaTeXML aims to conserve the semantic structures of the LaTeX markup. This makes it a good basis for semantic services like Math search.

Conversion times range from 30 milliseconds for a single formula (in the LaTeXML daemon) to minutes for book-size documents.


LaTeXML was started in the context of the Digital Library of Mathematical Functions at NIST, where LaTeX documents needed to be prepared for publication on the Web. The system has been under active development for over a decade, and has attracted a small, but dedicated community of developers and users centered around Bruce Miller, the main LaTeXML developer.

The current released version is LaTeXML 0.8.1. It was released in February 2015, but development has been active on the public repository since then.

LaTeXML was used to convert 90% (60% without errors) of 530,000 documents from the arXiv to XML.[4] As a result of this effort, LaTeXML supports a large range of LaTeX packages. The ACL 2014 conference used LaTeXML to convert submitted papers to XML.[5] This followed existing work which has been trying to convert the ACL Anthology papers to high-quality semantic markup for further analysis.[6] Since February, 2013, LaTeXML has been used as to render the web pages on the peer produced mathematics website, PlanetMath.


The core of LaTeXML is a Perl reimplementation of TeX's parsing and digestion algorithm coupled with a customizable XML emitter. To conserve the semantic structures in the LaTeX markup, LaTeXML needs XML bindings for the LaTeX packages. The LaTeXML distribution currently provides XML bindings for over 200 commonly used LaTeX packages such as AMSTeX, Babel[7] or PGF/TikZ (which only has experimental support). Additional (incomplete but useful) bindings have been supplied by the community.

The LaTeXML conversion consists of two stages:

  • the first one parses LaTeX and converts that into a LaTeX-near XML document type, and
  • the second (post-processing) creates from that one of the output formats XHTML, HTML5, HTML with images, EPUB.

LaTeXML 0.8 added daemon functionality which enabled multiple conversions and easy embedding into web services.


  1. ^
  2. ^
  3. ^
  4. ^
  5. ^
  6. ^
  7. ^

External links

  • LaTeXML source code
  • LaTeXML web server, services, and demos
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.