1

I have a document like this:

\documentclass[oneside]{book}

\usepackage{titletoc}
\titlecontents{chapter}
    [0pt]
    {}
    {\makebox[10em][r]{\thecontentslabel}\hspace{1em}\bfseries}
    {\makebox[10em][r]{\thecontentslabel}\hspace{1em}\bfseries}
    {\titlerule*[1em]{.}\thecontentspage}
    []

\begin{document}
\frontmatter
\tableofcontents

\mainmatter{}
\chapter{Alpha}
\chapter{Beta}
\chapter{Gamma}

\end{document}

It generates a table of contents like this:

enter image description here

How do I increase the vertical spacing between these TOC entries?

1
  • You can use the currently empty, first mandatory argument of the \titlecontents{chapter} command to adjust teh spacing in the table of contents. You could use commands like \medskip, \bigskip,... or \addvspace{<length>} with a length of your choice.
    – leandriis
    Jan 19 at 20:52
1

Is that better?

\documentclass[oneside]{book}

\usepackage{titletoc}
\titlecontents{chapter}
    [0pt]
    {}
    {\makebox[10em][r]{\thecontentslabel}\hspace{1em}\bfseries}
    {\makebox[10em][r]{\thecontentslabel}\hspace{1em}\bfseries}
    {\titlerule*[1em]{.}\thecontentspage}
    [\medskip]

\begin{document}
\frontmatter
\tableofcontents

\mainmatter{}
\chapter{Alpha}
\chapter{Beta}
\chapter{Gamma}

\end{document} 

enter image description here

2
  • Oh duh ... didn't realize I could use the last argument to titlecontents for this. Appreciate you pointing this out.
    – Roxy
    Jan 19 at 22:16
  • 1
    You're welcome. We're here to help!
    – Bernard
    Jan 19 at 22:19

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.