Generating T E X from mathematical content with respect to notational settings

We describe how to obtain client-preferred notations in TEX generated from the output of mathematical software environments. Our approach is based on the fact that most packages can produce MathML or other XML-based formats for mathematical content. Generating TEX from these allows notational choices to be applied during the translation process. The particular choices of notation can be made either at the time TEX is generated or later, by the use of TEX macros. We show how this approach may be applied to the generation of TEX from both presentationally- and conceptually-oriented mathematical content and how MathML may be used in the process. Our implementation conserves the implicit high-level semantics of macro use in both TEX and MathML. Since the expressions generated by mathematical software may be quite lengthy, we also discuss issues that arise in line-breaking.