General ⇒ Modify Table of Contents: Reduce Spacing Between Lines?
-
- Posts: 7
- Joined: Mon Apr 06, 2009 11:07 am
Modify Table of Contents: Reduce Spacing Between Lines?
Is there any way to reduce the spacing between the lines of the TOC i.e. reduce the vertical distance between lines? Are there any packages that can achieve this? For example, I'm looking for something similar to the \begin{enumerate*} command which reduces the vertical spacing in lists.
Thanks in advance
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
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Modify Table of Contents: Reduce Spacing Between Lines?
you could use the setspace package. Its documentation is contained in the file setspace.sty.
Stefan
-
- Posts: 7
- Joined: Mon Apr 06, 2009 11:07 am
Modify Table of Contents: Reduce Spacing Between Lines?
Code: Select all
\documentclass[11pt,a4paper]{report}
...
\usepackage{setspace}
...
\begin{document}
%\setcounter{tocdepth}{1} (Could use this to shorten things further)
\begin{spacing}{0.1}
\tableofcontents
\listoffigures
\listoftables
\end{spacing}
http://www.eng.cam.ac.uk/help/tpl/textp ... ueeze.html
Thanks for your help.
Re: Modify Table of Contents: Reduce Spacing Between Lines?
I'm new here on this forum!
I had also a problem with reducing spacing between lines
I've tried
\begin{spacing}{0.1}
\tableofcontents
\end{spacing}
If you put this just after \begin{document} it works very well! But I have first the title of my thesis and a 'word before' (I don't know the word in English, sorry), and when I than put :
\begin{spacing}{0.1}
\tableofcontents
\end{spacing}
It doesn't work anymore!! Has somebody a solution??
I have another problem too in my table of contents, for my chapters I'm using Roman numbers, so i get for example VIII Appendix; but in my table of contents the A from appendix is on the I van VIII, it overlaps! Can somebody help me with that? It would be very nice!!!!
bye bye!
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Modify Table of Contents: Reduce Spacing Between Lines?
welcome to the board!
Is there just no effect or do you get an error message?
To fix the other problem you could adjust \@pnumwidth, for example
Code: Select all
\makeatletter
\renewcommand*\@pnumwidth{3em}
\makeatother
Stefan
Re: Modify Table of Contents: Reduce Spacing Between Lines?
I don't get an error but nothing changes... It's very weird, when I put it just after \begin{document} it works, but otherwise not...
Also the following doesn't work, I don't get an error but again, nothing changes...
\makeatletter
\renewcommand*\@pnumwidth{3em}
\makeatother
I was planning to use the tocloft-package, but unfortunately when I write:
\usepackage{tocloft} then after the compilation I get two errors:
command c@lotdepth already defined
What's this?
Thank you in advance!!
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Modify Table of Contents: Reduce Spacing Between Lines?
there's a conflict between tocloft and subfigure. If you are using the subfigure package then writeveerle wrote: I was planning to use the tocloft-package, but unfortunately when I write: \usepackage{tocloft} then after the compilation I get two errors: command c@lotdepth already defined
Code: Select all
\usepackage[subfigure]{tocloft}
Stefan
Re: Modify Table of Contents: Reduce Spacing Between Lines?
\l@subfigure undefined
\l@subtable undefined
Maybe another package which is causing a conflict?
THX!!!
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Modify Table of Contents: Reduce Spacing Between Lines?
Possibly, perhaps I will see it if you would post your document preamble showing at least the packages loaded.veerle wrote: Maybe another package which is causing a conflict?
Stefan
Re: Modify Table of Contents: Reduce Spacing Between Lines?
\documentclass[11pt,a4paper]{report}
\usepackage[small,bf,hang]{caption2}
\usepackage{a4wide}
\usepackage[dutch]{babel}
\addto\captionsdutch{%
\renewcommand\chaptername{}}
\usepackage{amsmath}
\usepackage{url}
\usepackage{graphicx}
\usepackage[latin1]{inputenc}
\usepackage{xspace}
\usepackage{fancyhdr}
\setlength{\parindent}{0cm}
\setlength{\parskip}{2.3ex plus 0.3ex minus 0.3ex}
\renewcommand{\baselinestretch}{1.2}
\renewcommand{\arraystretch}{1.2}
\usepackage[version=3]{mhchem}
\usepackage[round]{natbib}
\bibliographystyle{bibliodutch}
\usepackage[nottoc]{tocbibind}
\newcommand{\ch}[1]{\ensuremath{\mathrm{#1}}\xspace}
\newcommand{\chpijlr}{\ensuremath{\hspace{1em}\longrightarrow\hspace{1em}}}
\newcommand{\chpijll}{\ensuremath{\hspace{1em}\longleftarrow\hspace{1em}}}
\newcommand{\chpijllr}{\ensuremath{\hspace{1em}\longleftrightarrow\hspace{1em}}}
\usepackage{relsize}
\usepackage{array,multicol,fancyhdr,times}
\usepackage[subfigure]{tocloft}
\usepackage{flafter}
\usepackage{float}
\usepackage{setspace}