Hey, > I can actually reproduce with the following: > > \documentclass{article} > \begin{document} > \tableofcontents > \end{document} > .. which somewhat contradicts my previous paragraph. We might have three > issues here instead of just two.
Have you run pdflatex multiple times? Beause with tableofcontent added to a document you have to run pdflatex at least two times (How many times exactly is hard to say). Background: In the first step the structure of the pdf is checked and the toc file is created (with content at site information) than at the second run the toc file is used (table of content is now filled up) and than a third run is needed if the tableofcontent triggers, that content moves to another site... So you sould do it like this: for i in 1 2 3; do pdflatex test.tex; done cp test.pdf test.pdf.1 pdflatex test.tex cp test.pdf test.pdf.2 vimdiff test.pdf.1 test.pdf.2 regards, sandro