I'm trying to finish my master's thesis and all I have left are some formatting issues. I'm trying to prevent LaTeX from breaking a chapter and its subheadings in between pages in my table of contents.
My problem is the following:
Table of Contents
... some stuff here ....
CHAPTER W
...
...
CHAPTER X
----------- Latex inserts page break here -------
<end of page>
<next page>
chapter x subheading 1
chapter x subheading 2
And this is what I want to happen:
Table of Contents
... some stuff here ....
CHAPTER W
...
...
<end of page>
<next page>
CHAPTER X
chapter x subheading 1
chapter x subheading 2
Basically, I want to make sure that the Chapter heading is not left "orphaned" in one page, while its subheadings are in another page.
What would be the simplest enforce this in LaTeX? It's only one chapter heading that's being orphaned in my ToC. I've considered using the package to adjust the title spaces, but this might be overkill. Perhaps someone may have an elegant solution. :D
\addtocontents{toc}{\newpage}
just before the\chapter
command that causes the "orphaned" line. (it has to be in the same file as the\chapter
line, not in a driver file that calls in the chapter.) – barbara beeton Apr 1 '13 at 13:09