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
Graphics, Figures & Tables ⇒ Line distance in table of contents
Line distance in table of contents
- Attachments
-
- mytoc.pdf
- My table of contents
- (29.02 KiB) Downloaded 265 times
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
Enlarge the page by exactly one line.
Insert this line right before (or after?) the \tableofcontents command. You can also test the starred version.
Best regards
Thorsten
Code: Select all
\enlargethispage{\baselineskip}
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Line distance in table of contents
hmm, localghost ty it worked when I used as follows:
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
Code: Select all
\enlargethispage{2\baselineskip}
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
Line distance in table of contents
Here is the solution.bkarpuz wrote:hmm, localghost ty it worked when I used as follows:But this time the page number and the last line stand on the same line. :|Code: Select all
\enlargethispage{2\baselineskip}
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
Code: Select all
\usepackage[titles]{tocloft}
Code: Select all
\setlength{\cftbeforesecskip}{\cftbeforesubsecskip}