Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How do I make figure captions span multiple pages?

I have a very long caption for a figure and would like it to carry on to the next page.

EDIT: I would like this to work in both one sided and two sided modes

share|improve this question
1  
There is no easy default way to do it, but it might be possible with some trickery. You are talking about a two-sided document where the caption starts on the left page and goes onto the right one, do you? Kind of reminds me on How to include a picture over two pages, left part on left side, right on right (for books)? while that question was more about the figure. You can also have multi-line captions. –  Martin Scharrer Mar 28 '12 at 22:10
1  
oh dear! that seems to imply a massive effort. Thinking I'll just move my caption into the text body :( –  Lucas Mar 28 '12 at 23:02

2 Answers 2

up vote 2 down vote accepted

Instead of using a floating environment which can't handle page breaks you can use a simple list environment. To set a caption you can use the command \captionof. The command is provided by

Here an example

\documentclass{article}
\usepackage{kantlipsum}

\usepackage{capt-of}
\begin{document}
\kant[1-2]

\noindent\hrulefill

\begin{center}
\rule{3cm}{3cm}

\captionof{figure}[short caption]{%
\kant[4-6]}
\end{center}

\noindent\hrulefill

\kant[1]
\end{document}

enter image description here

share|improve this answer

Well, @Marco Daniel answer did not work for me.

Searching google, though, I found this thread with the same issue (I reproduce the working code below): http://www.latex-community.org/forum/viewtopic.php?t=5881&f=45

The working answer to the thread is here: http://www.latex-community.org/forum/viewtopic.php?t=5881&f=45#p22785

Only to clarify, in this thread one wants to use subfigures in the same figure, using package subfig. However, it also worked for me when skipping all the subfig related features.

By the way, I am not using any latex standard documentclass. I am using elsarticle documentclass, in which the package caption also worked fine.

Enjoy.

CODE (replace <YOUR FIGURE>, <YOUR CAPTION> and <FIGURE LABEL> with the file name, figure caption and figure label, respectively):

\documentclass{article}

%...

\usepackage{caption}
% the following format will be used to emulate the captions produced by fltpage
\DeclareCaptionLabelFormat{adja-page}{\hrulefill\\#1 #2 \emph{(previous page)}}

%...

\begin{document}

%...

\begin{figure}
    \captionsetup{labelformat=empty}
    \centering
    \includegraphics[width=10cm]{<YOUR FIGURE>}
    \caption{}
\end{figure}
\clearpage
\begin{figure}
    \captionsetup{labelformat=adja-page}
    \ContinuedFloat
    \caption{<YOUR CAPTION>}
    \label{<FIGURE LABEL>}
\end{figure}

%...

\end{document}
share|improve this answer
    
Welcome to TeX.SX! –  Papiro Aug 8 '13 at 20:44
    
Good to make sure stuff works for that environment. It is very a common one to use! –  Lucas Aug 9 '13 at 0:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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