It's absolutely hilarious that you sometimes have to run the #pdflatex command up to 3 times such that the document is compiled correctly. Why can they not just make this command deterministic, such that no matter how many times I've run it, it will produce the right result, every time?