With the following example, I get a different vertical distance between "Contents" and "1 bar 5" and "foo" and "Lorem". How do I get the first entry of the TOC to the same height as "Lorem ipsum", that is the base line should be the red rule in the image below:

enter image description here


Lorem ipsum

Lorem ipsum 


The command \l@chapter in book.cls typesets the chapter entry in the table of contents. It adds 1.0 em vertically before the entry. So, to remove that space before the first entry, you could redefine that macro or add a negative vertical skip before you start the first chapter, such as

\addtocontents{toc}{\vskip -1.0em}

Actually, the macro contains also a glue of 1 pt. From book.cls:

  \ifnum \c@tocdepth >\m@ne
    \vskip 1.0em \@plus\p@
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \hskip -\leftskip
      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par

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.