Double call to pdflatex when creating pdf for updated table of contents.