I want to remove vertical space between two chapters in table of contents. I can remove the vertical space between chapter and a section by using

\renewcommand\cftchapafterpnum{\vskip -2pt}

But i dont know how to remove the spaces between two chapters. Please help me to figure it out.

  • 1
    Have you tried adjusting \cftbeforechapskip? Maybe try \setlength{cftbeforechapskip}{0pt}. Also it would be easier to help you if you could provide an MWE next time.
    – Max
    Jan 3 '13 at 15:08

This removes the space between 2 chapters only when they are just next to each other.



\def\l@chapter#1#2{\old@l@chapter{#1}{#2}\cftbeforechapskip3pt}% set your value here








If you want to remove all the vertical spaces, you simply say the following instead of the long code in preamble:


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.