This is my code:
\documentclass[12pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[chapter]{algorithm}
\renewcommand{\baselinestretch}{1.5}
\begin{document}
\begin{spacing}{1.2}
\tableofcontents
\backmatter
{\listoffigures \listoftables \listofalgorithms} \end{spacing}
\include{Chapter1}
\include{Chapter2}
\end{document}
in the PDF file, i have: in the list of figure the space between fig2.1 and fig 2.2 is smaller than the space between fig2.2 and fig 3.1, but in the list of algorithm i have the same space everywhere, Have you an idea please ?
I would like to have the list of algorithms like the list of figure
Thank you.
Similar:
Best Answer
A patch to correct for this behaviour is provided by the
etoolbox
package. The default\chapter
inserts a10pt
vertical gap between chapter breaks in the LoF and LoT. Merely add a similar gap as part of the macro\@chapter
to the LoA:The original
\@chapter
command contains:The
\patchcmd
searches for\chaptermark{#1}
in\@chapter
and replaces it witheffectively inserting the necessary chapter-wise gap in the LoA.
Make sure to load any package that affects the sectional unit
\chapter
after performing this patch. This is especially true if you usehyperref
andminitoc
. Other sectional packages liketitlesec
would not be compatible with the above patch.