5

I would like to add some space between conclusion chapter and the first appendix in ToC. I'm already using \setlength{\cftbeforechapskip} to adjust vertical length of the space between ALL chapters in ToC. My code is

\documentclass[a4paper,12pt]{book}
\usepackage[titles]{tocloft} %changing vertical length of the space between ALL chapters
                             %entries in ToC via \setlength{\cftbeforechapskip}{1pt}

\begin{document}

\frontmatter
\setlength{\cftbeforechapskip}{6pt} 
\tableofcontents


\mainmatter
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Intro}

\chapter{aaaaaaaaaaaaaaaaaaaaaaaaaaaaa}
\section{111111}
\section{222222}
\section{3333333}
\chapter{bbbbbbbbbbbbbbbbbbbbbbbbbbbbb}
\section{111111}
\section{222222}
\section{3333333}
\section{4444444}
\section{5555555}
\section{6666666}
\chapter{ccccccccccccccccccccccccccccccccccc}
\section{111111}
\section{222222}
\section{3333333}

\chapter*{Conclusion}
\addcontentsline{toc}{chapter}{Conclu}


\appendix
\chapter{aaaaaaa}
\chapter{bbbbbbbb}
\chapter{ccccccccc}

\end{document}

And the picture to make things more clear,

enter image description here

Cheers!

Vochmelka
  • 965

1 Answers1

8

You can use

\addtocontents{toc}{\protect\vskip<length>}

with the desired value for <length>:

\documentclass[a4paper,12pt]{book}
\usepackage[titles]{tocloft} %changing vertical length of the space between ALL chapters
                             %entries in ToC via \setlength{\cftbeforechapskip}{1pt}

\begin{document}

\frontmatter
\setlength{\cftbeforechapskip}{6pt} 
\tableofcontents


\mainmatter
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Intro}

\chapter{aaaaaaaaaaaaaaaaaaaaaaaaaaaaa}
\section{111111}
\section{222222}
\section{3333333}
\chapter{bbbbbbbbbbbbbbbbbbbbbbbbbbbbb}
\section{111111}
\section{222222}
\section{3333333}
\section{4444444}
\section{5555555}
\section{6666666}
\chapter{ccccccccccccccccccccccccccccccccccc}
\section{111111}
\section{222222}
\section{3333333}

\chapter*{Conclusion}
\addcontentsline{toc}{chapter}{Conclu}

\appendix
\addtocontents{toc}{\protect\vskip30pt}
\chapter{aaaaaaa}
\chapter{bbbbbbbb}
\chapter{ccccccccc}

\end{document}

enter image description here

The \addtocontents line has to be placed before the \chapter line of the first chapter in the appendices; if you use \include to pull the chapters together, the \addtocontents instruction has to go into the chapter file, just before the \chapter line; otherwise, the added space might result in the wrong place.

Gonzalo Medina
  • 505,128
  • 2
    if the author is actually using \include to pull the chapters together, the \addtocontents instruction has to go into the chapter file, just before the \chapter line. the \include mechanism manages to delay an \add... line otherwise, so it will take effect after that chapter file is preocessed. (always a surprise!) – barbara beeton Jan 27 '14 at 23:20
  • @barbarabeeton yes, you're right. I've added this remark to my edited answer. – Gonzalo Medina Jan 27 '14 at 23:27
  • @barbarabeeton fixed. – Gonzalo Medina Jan 28 '14 at 02:12