Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Let's say I'm writing a document with 6 chapters. I want to force the table of contents to be split between two pages. The first page would list the first 4 chapters, the second page would list the last 2 chapters.

How can I do that?

If it matters, assume the document class is report.

share|improve this question
    
Could you explain why you want to do this? –  Seamus Dec 3 '10 at 17:25
    
@Seamus: Well, the example above is a simplified version. I want to have all chapters listed on the first page, and all appendixes listed on the second. The reason is that currently the ToC is already longer than a single page, so I think it will look nicer if I split it nicely. –  Bruce Connor Dec 3 '10 at 17:30
1  
@Seamus: It is possible that a pagebreak in the ToC will occur after the first section of a chapter. This is akin to orphans in the main text, and some people may want to avoid it. –  lockstep Dec 3 '10 at 17:33
3  
adding page breaks to a toc is best left for last minute fine tuning, when you know exactly where the "natural" breaks have occurred. it's not at all uncommon. –  barbara beeton Dec 3 '10 at 22:11
add comment

1 Answer

up vote 24 down vote accepted

Within the body text, right before the fifth chapter, you could add a line break to the .toc file, for example:

\addtocontents{toc}{\protect\newpage}
share|improve this answer
    
But that must be done again after every compile cycle, right? –  Matthias May 23 '12 at 16:06
2  
@Matthias No, just once. This line goes into the document, not into the .toc file. The latter would require it, that's right. –  Stefan Kottwitz May 23 '12 at 18:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.