[Tex/LaTex] LyX: reduce spacing in TOC

lyxspacingtable of contents

Is it possible to reduce line spacing in the Table of Contents?

I have tried adding \singlespacing before the TOC but I get "Undefined control sequence"

I have also tried \setlength{\itemsep}{0mm}

Best Answer

try setting in the preamble \usepackage{setspace} and after \begin{document} write \addtocontents{toc}{\protect\setstretch{0.9}} (needs Ctrl-L for the TeX mode.

You can decrease the number to any value you need.

Another possibility is to set the additional space to zero:

\begingroup
\def\addvspace#1{}
\tableofcontents
\endgroup
Related Question