Before preparing a document for printing, I use a
BASH script, like the following:
#!/bin/sh xelatex document.tex % compile 1 makeglossaries document xelatex document.tex % compile 2 xelatex document.tex % compile 3 xelatex document.tex % compile 4
Some documents contain a lot of cross-references, so they need to be compiled repeatedly.
If I created a script which recorded the MD5 checksum of the PDF after each compile and compared this to the MD5 checksum of the previously created PDF (e.g. compared the PDF from compile 4 against that of compile 3), and I have not put any rapidly changing information in my document (such as the current time) would this be a flawless indicator that my document is completely finished compiling and it need not receive additional compiles?