Graphics, Figures & TablesLine distance in table of contents

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Line distance in table of contents

Post by bkarpuz »

Dear Friends,

I have two pages of table of contents, but the second page contains only one line.
How can I contract the distance between two lines in my table of contents?

Attached you may find my table of contents.

Thanks.

bkarpuz
Attachments
mytoc.pdf
My table of contents
(29.02 KiB) Downloaded 265 times

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Line distance in table of contents

Post by localghost »

Enlarge the page by exactly one line.

Code: Select all

\enlargethispage{\baselineskip}
Insert this line right before (or after?) the \tableofcontents command. You can also test the starred version.


Best regards
Thorsten
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Line distance in table of contents

Post by bkarpuz »

hmm, localghost ty it worked when I used as follows:

Code: Select all

\enlargethispage{2\baselineskip}
But this time the page number and the last line stand on the same line. :|

It there a command for decreasing the distance of lines in a page or decreasing the line heights between sections in table of contents?

Thanks for the immediate help.

bkarpuz
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Line distance in table of contents

Post by bkarpuz »

bkarpuz wrote:hmm, localghost ty it worked when I used as follows:

Code: Select all

\enlargethispage{2\baselineskip}
But this time the page number and the last line stand on the same line. :|

It there a command for decreasing the distance of lines in a page or decreasing the line heights between sections in table of contents?

Thanks for the immediate help.

bkarpuz
Here is the solution.

Code: Select all

\usepackage[titles]{tocloft}

Code: Select all

\setlength{\cftbeforesecskip}{\cftbeforesubsecskip}
Post Reply