5

I would like to add some tiny space between items within a chapter in the List of Figures/Tables. It should be compatible with \setlength{\cftbeforechapskip}{Xpt} I'm using for ToC.

My code is:

\documentclass[oneside,12pt]{book}
\usepackage[titles]{tocloft}


\begin{document}

\listoftables
\listoffigures

\setlength{\cftbeforechapskip}{100pt}
\tableofcontents


\chapter{a}
\section{1}
\begin{table}[h] \caption{Performance at peak F-measure1} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure2} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure3} \end{table}
\begin{figure} \caption{Performance at peak G-measure1} \end{figure}
\begin{figure} \caption{Performance at peak G-measure2} \end{figure}
\begin{figure} \caption{Performance at peak G-measure3} \end{figure}

\chapter{b}
\section{1}
\begin{table}[h] \caption{Performance at peak F-measure4} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure5} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure6} \end{table}
\begin{figure} \caption{Performance at peak G-measure4} \end{figure}
\begin{figure} \caption{Performance at peak G-measure5} \end{figure}
\begin{figure} \caption{Performance at peak G-measure6} \end{figure}

\end{document}

Thanks.

  • So, you want 100pt of vertical separation bettwen chapter entreies in the LoF, LoT and some additional spacing between figure/table entries within each chapter? – Gonzalo Medina Feb 8 '14 at 15:32
  • Only in the LoF/LoT within a chapter (it shouldn't affect the vertical separation between blocks of F/T for a particular chapter). And not necessarily 100pt - I mentioned that just in case that the solution would contradict. – Vochmelka Feb 8 '14 at 15:36
6

You can redefine \cftfigafterpnum, \cfttabafterpnum to add the desired amount of space between entries within each chapter; in my example I used 5pt, just for illustration, but use any other desired length:

\documentclass[oneside,12pt]{book}
\usepackage[titles]{tocloft}

\setlength\cftbeforechapskip{100pt}
\renewcommand\cftfigafterpnum{\vskip5pt\par}
\renewcommand\cfttabafterpnum{\vskip5pt\par}

\begin{document}

\listoftables
\listoffigures
\tableofcontents

\chapter{a}
\section{1}
\begin{table}[h] \caption{Performance at peak F-measure1} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure2} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure3} \end{table}
\begin{figure} \caption{Performance at peak G-measure1} \end{figure}
\begin{figure} \caption{Performance at peak G-measure2} \end{figure}
\begin{figure} \caption{Performance at peak G-measure3} \end{figure}

\chapter{b}
\section{1}
\begin{table}[h] \caption{Performance at peak F-measure4} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure5} \end{table}
\begin{table}[h] \caption{Performance at peak F-measure6} \end{table}
\begin{figure} \caption{Performance at peak G-measure4} \end{figure}
\begin{figure} \caption{Performance at peak G-measure5} \end{figure}
\begin{figure} \caption{Performance at peak G-measure6} \end{figure}

\end{document}

An image of the LoT:

enter image description here

An image of the LoF:

enter image description here

By the way, using just [h] as the float placement specification could be too restrictive.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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