Certain typesetting problems, mostly those having to do with cross-referencing in a document, can be solved with a multipass job. Normally, two or three passes are necessary. The basic idea is to write a TEX program with macros for all passes and to run it as many times as necessary. In the first pass, certain macros are expanded, and they write the necessary cross-reference data on an auxiliary file. In the second pass, the file is input, and other macros are expanded, based on the information read. Another auxiliary file is written by the second pass, either to be read by the third pass (if one is necessary) or to be ignored.
Unable to display preview. Download preview PDF.