# Splitting ToC into two parts, each in one page

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?

``````\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.

• not sure whether this applies with lyx, but still worth mentioning. if the job is produced from multiple files pulled in with `\include`, an instruction meant for the toc that is placed before an `\include` statement will not take effect until after the `\include'd file is processed, giving a result other than what is wanted. the toc-adjustment must be placed *within* the `\include`d file, preferably as the first line, and certainly before any command that would put an entry in the toc. – barbara beeton Jun 3 '13 at 18:24