It is known that references require an additional run of LaTeX and that these references may depend on BibTeX, which in turn depends on at least one previous compilation of the document source. I have also encountered a statement on the web that certain LaTeX source files might require more compilations.
This makes me curious: What coding patterns (or nestings thereof) will increase the required number of
latex runs to generate the final document? Ideally an answer will be a coding pattern (or set of coding patterns) that can be used to increase the number of required compilations by 1.
There are two reasons for asking:
- As long as I am not using one of the tools mentioned in the references mentioned in related questions about automated LaTeX (re)compilation (e.g., here and here), I might want to know the answer without needing to inspect the
log-file. (On how to properly do that, see my other question here.)
- Just as a fun intellectual exercise, it would be interesting to know how to (recursively or otherwise) generate LaTeX source files requiring an arbitrary number of compilations. (For this specific question I have created a separate post, so please put your answers there.)