General ⇒ Modify Table of Contents: Reduce Spacing Between Lines?
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Modify Table of Contents: Reduce Spacing Between Lines?
Without that your code doesn't produce the error "command c@lotdepth already defined" mentioned above. How did that error happen? Using this preamble?
Stefan
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
Re: Modify Table of Contents: Reduce Spacing Between Lines?

THANK YOU VERY MUCH!!!!!
Re: Modify Table of Contents: Reduce Spacing Between Lines?
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Modify Table of Contents: Reduce Spacing Between Lines?
Code: Select all
{\let\stdnumberline\numberline
\renewcommand*\numberline[1]{\stdnumberline{#1}\quad}
\tableofcontents}
Re: Modify Table of Contents: Reduce Spacing Between Lines?
Now I want the name 'table of contents' in the same lay-out like my other chapters , I've tried this:
\renewcommand{\cftZtitlefont}{
\hrule
\vspace{5pt}
\Huge \bfseries {Inhoudsopgave}
\vspace{5pt}%
\hrule }
but again an error... 'cftZtitlefont' is undefined
I'm sorry, I hope that it's my last question!!
Thank you
Veerle
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Modify Table of Contents: Reduce Spacing Between Lines?
perhaps just don't load tocloft, everything would be ok (but keep the redefiniton of \numberline) - or not?
Do you still need tocloft? Does the toc title font really need adjustment?
Stefan
Re: Modify Table of Contents: Reduce Spacing Between Lines?
\begin{spacing}{0.1}
\tableofcontents
\end{spacing}
doesn't work

- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Modify Table of Contents: Reduce Spacing Between Lines?
Code: Select all
\usepackage[titles]{tocloft}
Re: Modify Table of Contents: Reduce Spacing Between Lines?
when I put \usepackage[subfigure][titles]{tocloft} I get an error: missing begin document
When I put \usepackage[subfigure,titles]{tocloft} then I get no errors but nothing is changing, everything is back like it was before (no space in between the lines)
When I put \usepackage[subfigure]{tocloft} \usepackage[titles]{tocloft} I get an error: Option clash for tocloft

- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Modify Table of Contents: Reduce Spacing Between Lines?
Instead of \cftZtitlefont use \cfttoctitlefont. Z stands for toc, lof or lot according to the documentation.
Stefan