General ⇒ Table of contents across several pages
Table of contents across several pages
This might be a stupid question but i'll go ahead and ask it anyway.
I have a table of contents spread across several pages and at the bottom of one page I have the entry for say section 6 but at the top of the next page is the entry for subsection 6.1. This looks quite naff and I was wondering if there was anyway around this so that the entries are on the same page?
Any suggestions would be appreciated.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Table of contents across several pages
you could insert directly before section 6:
Code: Select all
\addtocontents{toc}{\protect\newpage}
Code: Select all
\addtocontents{toc}{\protect\enlargethispage{\baselineskip}}
Re: Table of contents across several pages
Cheers
