Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use the titletoc package, and this is how my chapter entries look:

\titlecontents{chapter}[0pc]
{\addvspace{2pc}}
{\thecontentslabel.\ }
{}
{\normalsize\titlerule*[12pt]{.}\contentspage}
[\addvspace{3pt}]

Notice that 2pc vertical space before the entry? This is great, except that it also occurs for the first entry. This is a problem, because it makes the entries appear 2pc farther away from the “Contents” chapter name than it actually should be.

How do I fix this?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You can use \addtocontents to counterbalance the unwanted space:

\documentclass{book}
\usepackage{titletoc}

\titlecontents{chapter}[0pc]
{\addvspace{2pc}}
{\thecontentslabel.\ }
{}
{\normalsize\titlerule*[12pt]{.}\contentspage}
[\addvspace{3pt}]

\begin{document}

\tableofcontents
\addtocontents{toc}{\protect\addvspace{-2pc}}

\chapter{Test chapter one}
\chapter{Test chapter two}

\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.