36

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.

4
  • Could you explain why you want to do this?
    – Seamus
    Dec 3, 2010 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.
    – Malabarba
    Dec 3, 2010 at 17:30
  • 3
    @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, 2010 at 17:33
  • 4
    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. Dec 3, 2010 at 22:11

1 Answer 1

71

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}
4
  • But that must be done again after every compile cycle, right?
    – Matthias
    May 23, 2012 at 16:06
  • 3
    @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, 2012 at 18:00
  • Works in Lyx as well when placed within a TeX code block.
    – flungo
    Aug 14, 2015 at 9:00
  • 6
    \pagebreak would be better.
    – egreg
    Sep 13, 2017 at 20:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .