I have written a document containing three pages of table-of-contents; unfortunately, the last page consists of just a single section, which looks ugly. If I could remove a bit of space between the "Contents" heading and the first ToC entry on the first page, all of the entries would fit on two pages. Can anyone tell me how to do this?
Thanks!
Page Layout ⇒ spacing in table of contents
NEW: TikZ book now 40% off at Amazon.com for a short time.
spacing in table of contents
Hi,
two alternatives: the first one is the one you suggest: add something like the following
just before the first sectional unit that will go to the table of contents (of course, instead of -2\baselineskip, use the length that suits your needs). This approach however might cause the first entry to be placed too close to the "Contents" heading; in this case, you could use the second alternative: add something like
somewhere near some of a sectional unit that will appear in the second page of the table of contents; of course, you can use 2\baselineskip or any other length, instead of \baselineskip.
two alternatives: the first one is the one you suggest: add something like the following
Code: Select all
\addtocontents{toc}{\protect\addvspace{-2\baselineskip}}
Code: Select all
\addtocontents{toc}{\protect\enlargethispage{\baselineskip}}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: spacing in table of contents
I didn't want to open a new topic for this. I use the \linespread option, because I'm expected to form the document in that way (I'm not really keen on more space between lines), but I don't want to have more space among the lines of table of contents. How to reduce the space there, if I use \linespread at the same time too? 

- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
spacing in table of contents
Don't hesitate to open new topics for new questions.
You could use \linespread after \tableofcontents, or use the setspace package instead.
Stefan
You could use \linespread after \tableofcontents, or use the setspace package instead.
Stefan
LaTeX.org admin