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
    Commented Jan 19, 2021 at 20:52

1 Answer 1

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
    Commented Jan 19, 2021 at 22:16
  • 1
    You're welcome. We're here to help!
    – Bernard
    Commented Jan 19, 2021 at 22:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .