How do I reduce the line spacing in my Table of Contents?
I tried with \renewcommand{\baselinestretch}{1}
but it doesn't...
1 Answer
Instead of the spacing environment, you can use also the tocloft
package for a more granular control. See the MWE:
\documentclass{book}
\usepackage[titles]{tocloft}
\setlength{\cftbeforechapskip}{.1ex}
\setlength{\cftbeforesecskip}{-.5ex}
\usepackage{lipsum} % placeholder text
\begin{document}
\tableofcontents
\chapter{The chapter one}
\chapter{The chapter two}
\section{Lore ipsum}
\lipsum[1]
\section{Nam dui ligula}
\lipsum[2]
\section{Nulla malesuada}
\lipsum[3]
\chapter{The chapter three}
\section{Lore ipsum}
\lipsum[1]
\chapter{The chapter four}
\section{Lore ipsum}
\lipsum[1]
\end{document}
-
2If you use the version of
tocloft
which is part of thememoir
class, you should use\cftbeforechapterskip
instead of\cftbeforechapskip
and\cftbeforesectionskip
instead of\cftbeforesecskip
. Oct 3, 2016 at 13:04
setspace
package.