TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
It is possible to directly process TEI files in ConTeXt. See ConTeXt wiki article for details. – Aditya Jun 20 '14 at 21:25
up vote 6 down vote accepted

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 http://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.

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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