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 like some extra vertical white space in the TOC after one specific section.

So far I have:

\documentclass{article}

\usepackage{etoolbox}
\usepackage{tocloft}

\preto\section{% 
\addtocontents{toc}{\vskip10pt}}

\begin{document}
\tableofcontents

\section{No extra space in TOC 1}
\section{No extra space in TOC 2}
\section{Chapter after which extra space in TOC is wanted}
\section{No extra space in TOC 3}

\end{document}

This does create extra space the way I want it, but after all chapters. (by the way I tried different things and I'm not sure if both packages are needed for the thing I have now...)

How can I specify one chapter that the extra space should be put after in the TOC?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

use \addtocontents

\documentclass{article}    
\begin{document}
\tableofcontents

\section{No extra space in TOC 1}
\section{No extra space in TOC 2}
\section{Chapter after which extra space in TOC is wanted}
\addtocontents{toc}{\vspace{\normalbaselineskip}}
\section{No extra space in TOC 3}

\end{document}

enter image description here

share|improve this answer
    
Solved, thanks a lot! –  Sarah Jun 4 '12 at 11:29

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.