LaTeX is a document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.
If you need to produce documents with scientific formulas, complex math equations, or any special notations, take a look at the LaTeX system. It uses plain text files that contain formatting commands and works with other authoring tools (such as Word, RoboHelp, and Framemaker).
As the originator of the research that resulted in my post about free PDF tools, credit goes to my friend and former colleague and manager Marshall Bloom for sharing this LaTeX resource.
Further research shows that you can convert LaTeX
If you want to do a LaTeX-to-XML conversion, take a look at LaTeXML http://dlmf.nist.gov/LaTeXML/. LaTeXML is a program, written in Perl, that attempts to faithfully mimic TeX’s behaviour, but produces XML instead of dvi. The document model of the target XML makes explicit the model implied by LaTeX.