GeneralTOC adjustment

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
omkardpd
Posts: 86
Joined: Sun Feb 24, 2008 7:23 am

TOC adjustment

Post by omkardpd »

Hi,

The last entry in TOC is getting printed on a new page. How do I make sure that only entry does not go on new page, but it stays with earlier entries?

I tried "page enlarging", but I guess that's not a good option.

Regards,

Omkar

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

TOC adjustment

Post by localghost »

omkardpd wrote:[...] I tried "page enlarging", but I guess that's not a good option. [...]
I don't know what you consider as the process of enlarging a page. To me there seem to be two possible solutions.

The first one is the enlargement of the page right before the ToC is printed.

Code: Select all

\enlargethispage{\baselineskip}
\tableofcontents
The second one is to enlarge the page by writing the command for enlargement into the TOC file.

Code: Select all

\addtocontents{toc}{\protect\enlargethispage{\baselineskip}}
The first one may fail whereas the second one should be save.


Best regards
Thorsten
Post Reply