TEI documents have a lot of information that can be used for representation and style. Are there any tools to convert such documents into LaTeX in order to create good pdf/html etc. versions?

  • Could you provide more information on 'TEI'?
    – Joseph Wright
    Aug 1 '10 at 15:36
  • tei-c.org/index.xml
    – txwikinger
    Aug 1 '10 at 16:14
  • Is it xml markup? Source-code? Binary-blob? Sql database? I can't tell from looking at that website.
    – Dima
    Aug 1 '10 at 22:22
  • TEI is a special from of XML markup that allows text critical elements and other meta information being added to the normal text
    – txwikinger
    Aug 2 '10 at 23:29
  • 1
    It is possible to directly process TEI files in ConTeXt. See ConTeXt wiki article for details.
    – Aditya
    Jun 20 '14 at 21:25

It's an XML defined markup. There are XSLT stylesheets for this format from the same website you link to


This is a set of XSLT 2.0 specifications to transform TEI XML documents to XHTML, to LaTeX, to XSL Formatting Objects, to OOXML (docx), and to ePub format. The files can be downloaded from the Releases area of https://tei.sf.net . They concentrate on the simpler TEI modules, but adding support for other modules is fairly easy. In the main, the setup has been used on ‘new’ documents, ie reports and web pages that have been authored from scratch, rather than traditional TEI-encoded existing material.


Use TEI's OxGarage online service then edit the generated LaTeX to tweak as necessary/desired

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.