5

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

3
  • You should have a look at the setspace package.
    – Werner
    Aug 28, 2012 at 21:53
  • 1
    \begin{spacing}{0.9} \tableofcontents \end{spacing} Thank you for help
    – researcher
    Aug 28, 2012 at 22:20
  • 1
    You can answer your own question since it seems that you already have solved your problem.
    – hpesoj626
    Aug 29, 2012 at 4:01

1 Answer 1

8

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} 
1
  • 2
    If you use the version of tocloft which is part of the memoir class, you should use \cftbeforechapterskip instead of \cftbeforechapskip and \cftbeforesectionskip instead of \cftbeforesecskip.
    – ScumCoder
    Oct 3, 2016 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.