Generating Multiple Outputs from
John Plaice, Yannis Haralambous · 2003
In this paper, we describe how to generate multiple outputs (DVI, PostScript, PDF, XML, ...) from the same document. The engine is augmented with a library for manipulating multidimensional contexts. Each macro can be defined in multiple versions, and macros can thereby adapt to differing contexts. Macros can be specialized for several different output formats, without changing the overall structure. As a result, the same document can be used to easily produce different output formats, with appropriate specializations for each of them, without having to make any changes to the document itself.