Here is a solution for book.cls
The gap is introduced by the \chapter
command (actually \@chapter`), using
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
each time a new chapter is set up, i.e. vertical space (the gap!) is set to the relevant .lof
or .lot
file.
This can be patched out with \xpatchcmd{}
, replacing the commands in \@chapter
with 'nothing'.
\documentclass{book}
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@chapter}{%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
}{}{}{}
\makeatother
\begin{document}
\listoffigures
\chapter{First}
\begin{figure}
\caption{Dummy figure}
\end{figure}
\begin{figure}
\caption{Dummy figure}
\end{figure}
\chapter{Second}
\begin{figure}
\caption{Dummy figure}
\end{figure}
\end{document}

book
class? – user31729 Oct 29 '15 at 15:12\documentclass{<insert your class>}\begin{document}\listoftables\chapter{a}\begin{table}\caption{}\end{table}\chapter{b}\begin{table}\caption{}\end{table}\end{document}
– Torbjørn T. Oct 29 '15 at 15:20