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

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

Stefan Kottwitz
Site Admin
Posts: 10340
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