I know when I have a .bib file I need to do the following compilation order:
- Latex compiler
- biber
- Latex compiler
- Latex copmiler
But what about when I'm not using a .bib file? How many times do I need to compile then and why?
If your document doesn't contain references or ToC, LoT, LoF material, a single pass through LaTeX might be enough (or was, with newer versions of LaTeX this might add an additional unwanted page on first pass, so as a rule of thumb: the minimum for guaranteed correct output is two).
If your document contains references, or ToC, LoT, LoF material, at least three times. The reasoning is pretty simple: First pass creates the labels and ToC, LoT, LoF material. Second pass has everything, but due to changes in layout and the additional material that wasn't available during first pass, the page numbers might change. Third pass is the first one that might be correct, but there could still be some changes affecting cross-referencing, so you might need more than three.
longtable you have to rerun LaTeX several times until it's done as well, and it doesn't have to be done after the third run. The best bet is what @moewe told you: Pay attention to the log, it usually tells you to rerun LaTeX if things aren't done yet.
– Skillmon
Dec 05 '20 at 16:11
.logfile. – moewe Dec 05 '20 at 16:06latexmkuse heuristics and file monitoring to make sure to compile your document often enough so the output 'converges'. – moewe Dec 05 '20 at 16:07