This question is essentially the same as How can I fit my table of contents into a single page?
"When I use \tableofcontents I get all my contents in a single page except for a line that goes on the other page, how can I make all in the same page?"
However, the solution given there does not help me, for the following reason. The page next to the ToC is text only (plus one line of ToC), the page after that starts with a section title. The last line of ToC seems to be forced here by LaTeX in order to avoid getting the section title at the bottom: it prefers to put a space between the ToC and the text rather than between paragraphs.
Is there an elegant solution to this?
\addtocontents{toc}{\protect\enlargethispage{\baselineskip}}immediately after the first section heading – henrique Aug 28 '12 at 12:58