[Tex/LaTex] Splitting ToC into two parts, each in one page

lyxpage-breakingtable of contents

The Table of Contents in my LyX document is multiple pages long, but LyX splits it at an undesirable position. I want to split the Table of Contents manually. An equivalent to \newpage but only inside ToC. Is this possible?

Best Answer

You could add the following to your LaTeX preamble:

\newcommand{\tocclearpage}{\addtocontents{toc}{\protect\clearpage}}

and then add an ERT containing

\tocclearpage

in your document wherever you wish to insert a page break - \clearpage - in your ToC.

The motivation behind this approach is that you have no clear handle on the ToC other than by feeding it instructions throughout your document. That is, the entire ToC is created (in general), using a single macro.