The input can be either XML or LATEX. XML shall be as per NLM/JATS DTD’s or Elsevier Journal Article DTD. TEXFolio ingests these two types of XML and generates a LATEX by applying corresponding XSLT over the document. This LATEX source is used to edit the content and/or generate PDF output.
Whenever the LATEX file is edited, user can either generate PDF or she can go through another cycle of XML → LATEX → PDF to ensure high fidelity between XML and PDF thereby making it a truely XML first workflow. We call it “XROUND” process.
For LATEX inputs, we need to restructure the document to augment XML generation since the front matter is very verbose and structured in a granular way in XML documents. The bibliography shall be provided as bibTEX database. Barring the front and back matters, the main body of the document does not pose any problem during XML generation. The system can digest all the author’s macro definitions, newtheorem type of declarations or any other declarations provided by AMS math packages and other standard LATEX packages.
TEX4ht is our preferred engine to translate LATEX documents to XML format among all other tools and softwares available around. Since TEX is being used to process the document, it can easily and effectively handle all the macros and user definitions or declarations seamlessly.