[Tex/LaTex] Reduce the spacing of the Table of Contents

line-spacingtable of contents

How do I reduce the line spacing in my Table of Contents?
I tried with \renewcommand{\baselinestretch}{1} but it doesn't…

Best 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}