TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.