Jump to content

LaTeXML

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 132.166.177.50 (talk) at 10:08, 28 March 2014 (→‎History: ACL 2014 use). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

Workflow

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. [citation needed]

History

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.7. It was released in june 2009, but development has been active on the public repository since then. The long-awaited LaTeXML 0.8 is expected for Feb/March 2014.

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 upcoming ACL 2014 conference will also use LaTeXML to convert submitted papers to XML[5]. This follows existing work which has been trying to convert the ACL Anthology papers to high-quality semantic markup for further analysis.[6]

Implementation

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. [citation needed]

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 (expected in Feb/March 2014) adds daemon functionality that allows multiple conversions and web service functionalities.

References

  1. ^ "Gecko-based EPUB Readers and LaTeXML".
  2. ^ "Tools for Converting LaTeX to XML".
  3. ^ "Free Techno Blog: LaTeXML".
  4. ^ Stamerjohanns, Heinrich; Kohlhase, Michael; Ginev, Deyan; David, Catalin; Miller, Bruce (2010). Transforming large collections of scientific publications to XML (PDF). Mathematics in Computer Science. Vol. 3, no. 3. Birkhäuser. pp. 299--307.
  5. ^ "ACL 2014 Publication - Papers in XML format".
  6. ^ Schäfer, Ulrich; Read, Jonathon; Oepen, Stephan (2012). Towards an ACL anthology corpus with logical document structure: an overview of the ACL 2012 contributed task (PDF). ACL-2012 Special Workshop on Rediscovering 50 Years of Discoveries. pp. 88--97.
  7. ^ "LaTeXML: Localization with Babel".