Run LaTeX as many times as needed
A csh script to run LaTeX as many times as needed (and hopefully
no more) on a given file to resolve cross references, and to
ensure that the table of contents and index (if any) are
See also latexmk.
The author is John Collins.