# Got more pages with repeated compile

Well I have encountered this problem so many times that I can't help but ask here.

When I compile my documents for the very first time, I get 145 pages. Then I compile them again without any other action, I get 150 pages. Then I compile them the third time in a row, I get 153 pages. When I compile the documents for the fourth time, I get 155 pages. Then additional compiles won't give any more pages.

Based on my experience, it doesn't necessarily take four times to reach the real total of pages. The fact is that it sometimes takes more than one compile to reach that total. Why?

-
Welcome at Tex.sx! Your question is a bit vague. In particular, it leaves as wondering what kind of output has been added in the following runs and how you "compile" them. Nevertheless, such a behavior is actually expected as the table of contents, the index, bibliographies, and glossaries are actually made up by means of repeated compiles. I suppose that you will confirm that related pages have been added. If you want to know why you have 4 instead of 2 or 3 cycles, you may need to add more context information. –  Christian Feuersänger Aug 30 '13 at 18:35
@ChristianFeuersänger i thought the actual question was that last word (why). i can explain 3 runs for stability, but 4? –  wasteofspace Aug 30 '13 at 18:38
@TerryLi i think we need at least a package list to form a coherent opinion. (note that i have a test file for footmisc that never reaches stability.) –  wasteofspace Aug 30 '13 at 18:40
the increase with the second compilation is easy to explain -- the resolution of \refs and the addition of the toc. is a bibliography added between any of those passes? you say not, but on some systems, it happens "under the covers". that would resolve \cites, which sometimes add even more pages than \refs. if the bibliography isn't added until pass 3, it won't get into the toc until pass 4, and if that adds another page to the toc, if the toc started as an even number of (full) pages, the "start chapters on odd page" rule results in another two pages. –  barbara beeton Aug 30 '13 at 18:41
Well, I second @wasteofspace: either these comments answer the question or we need context information (i.e. at least the preamble of the document). –  Christian Feuersänger Aug 30 '13 at 18:53