1

Is it possible in LaTeX to reduce the line-spacing in the table of contents just for certain sections? Left is how it currently looks like, right is how I want it to look like:

Current Wanted

Thanks a lot! :-)

2

I found out that the following command solves it for all chapters:

\def\l@chapter{\@tocline{0}{2pt plus1pt}{0pt}{}{}}}%

Default would be:

 \def\l@chapter{\@tocline{0}{8pt plus1pt}{0pt}{}{}}%

I solved the problem defining a new command:

\newcommand{\reducelinespaceintoc}{
    \addtocontents{toc}{%
        \protect\renewcommand*{\protect\l@chapter}{\protect\@tocline{0}{2pt plus1pt}{0pt}{}{}}
    }%
}

Before the chapter you want to reduce the spacing you can now put \reducelinespaceintoc. If you want to revert to normal spacing, just add another command using "8pt plus1pt" instead of "2pt plus1pt".

1
  • I changed my answer, so it provides a answer. Aug 19 '14 at 13:58

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.