GeneralModify Table of Contents: Reduce Spacing Between Lines?

LaTeX specific issues not fitting into one of the other forums of this category.
veerle
Posts: 16
Joined: Fri May 01, 2009 6:50 pm

Re: Modify Table of Contents: Reduce Spacing Between Lines?

Post by veerle »

Oh thank you, that's stupid of me!
Now i have put:
\renewcommand{\cfttoctitlefont}{
\hrule
\vspace{5pt}
\Huge \bfseries {Inhoudsopgave}
\vspace{5pt}%
\hrule }

But now I get the right title, but after that I get the word 'inhoudsopgave' again in the style of the original table of contents title... And when I leave the word 'inhoudsopgave' away I get two horizontal lines and then the title inhoudsopgave
Hmmm so there is still a little problem...

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
Stefan Kottwitz
Site Admin
Posts: 10358
Joined: Mon Mar 10, 2008 9:44 pm

Modify Table of Contents: Reduce Spacing Between Lines?

Post by Stefan Kottwitz »

\cfttoctitlefont is intended to contain formatting commands, not the toc title itself. You could try it together with \cftaftertoctitle:

Code: Select all

\renewcommand{\cfttoctitlefont}{
\hrule
\vspace{5pt}
\Huge \bfseries}

\renewcommand{\cftaftertoctitle}{
\vspace{5pt}%
\hrule}
Stefan
LaTeX.org admin
veerle
Posts: 16
Joined: Fri May 01, 2009 6:50 pm

Re: Modify Table of Contents: Reduce Spacing Between Lines?

Post by veerle »

Thank you!!! You're great! Now I can go out tonight without worries ;)
Have a nice weekend too!
bye bye!!!
Post Reply