5

I'm using the command \listoffigures to list all figure captions after the contents page. Many of my figure captions are quite long and as a result LaTeX is placing 2 captions on a page with a large gap in between them. I would like to prevent these gaps by allowing figure captions to be split across pages just like normal text would be - how can I do this? I am aware of the short caption option with \caption[short]{long} for long captions but this is not appropriate for my purposes.

Minimum example:

\documentclass{article}
\usepackage{blindtext}
\usepackage{capt-of}

\begin{document}

\listoffigures
\newpage
\centering

\section{Section 1}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 2}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 3}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 4}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\end{document}

This creates an analogous problem to the one I have: in the list of figures, the third figure legend starts on a new page leaving a large space at the end of the second figure legend (bottom of page 1). How can I force the third figure legend to start on page 1 and finish on page 2 like normal text?

  • Can you provide a MWE demonstrating the problem? – darthbith May 24 '14 at 14:38
  • 1
    @darthbith I have edited the question to provide an example of the problem. – user2524828 May 24 '14 at 16:22
  • Page breaking of caption is difficult, I suppose ;-) – user31729 May 24 '14 at 17:51
  • 1
    If they are so complicated, why bother with a LOF at all? Or if you want to list the page with each figure, set the short caption to empty maybe so you don't have to worry about confusing readers? – darthbith May 25 '14 at 14:33
  • 1
    Some of them are complicated, not all of them. The list of figures is a requirement for the thesis I'm writing. – user2524828 May 26 '14 at 9:35
2

LaTeX sets \interlinepenalty to the maximum value, 10000 while setting each caption in the LOF, if you locally disable \interlinepenalty by defining it to be a scratch register, so that the value set is ignored then page breaking happens as usual.

enter image description here

\documentclass{article}
\usepackage{blindtext}
\usepackage{capt-of}

\begin{document}

{\countdef\interlinepenalty255
\listoffigures

}
\newpage
\centering

\section{Section 1}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 2}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 3}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 4}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\end{document}

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.