I have the following TOC:
section 1
subsection 1.1 …………………. 2section 2
subsection 2.1 …………………. 2
How can i reduce the spacing between the first 'group' of items related to section 1 and between the second 'group' of items related to section 2?
I know how to decrease the spacing between items of the same group, e.g., between all subsections of section 2.
I've seen similar posts but i couldn't apply the provided solutions.
Best Answer
This is defined as part of the function that sets the
\section
heading in the ToC, known as\l@section
. Here's its definition insidearticle.cls
:Note the use of
\addvspace{<space>}
which inserts a vertical gap up to the<space>
provided. You can change (or remove) this using the followingetoolbox
patch:The same can be achieved using
tocloft
: