I would like to create a small Python script that will guess the number of compilations needed for one TEX file myfile.tex
.
Here is my algorithm.
Start with a folder containing only
myfile.tex
.Compile
myfile.tex
one 1st time to producemyfile-v1.pdf
.Compile
myfile.tex
a 2nd time to producemyfile-v2.pdf
for example.Compare the PDF to look for a change.
Go to step 3 as many times as something has changed.
latexmk
knows when to stop). You can use somearara
directives to do that (for example), or you can do it manually bydiff
ing the PDF (make sure that there is no variable data in the pdf; see here)latexmk
. Fordiff
ìng, I will look at your link. :-)arara
looks very intersting!arara
gives. But if you just want to build the document without worries,latexmk
is really good!