Graphics, Figures & Tablessplit a long caption across pages

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pierre
Posts: 5
Joined: Fri Apr 02, 2010 3:28 pm

split a long caption across pages

Post by pierre »

Hi everyone,

Here I come with a new problem.
I have a huge figure that takes almost the entirety of a page.
It is so huge that it caption (which is kinda long too) ends up going out of the page.
I wanted to know if it was possible to explicitly split the caption.
I don't mind if the figure is not a float anymore or this kind of thing.
All I would like is to have the guaranty that the second part of the caption appears directly on the page following of the one of the figure.

If I am too confusing, here is what I would like to obtain:

page N : huge figure + beginning of caption
page N+1: end of caption (at the top if possible)

Thanks in advance.
Cheers,
Pierre.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

split a long caption across pages

Post by gmedina »

Hi,

try something along these lines:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{caption}
\usepackage{lipsum} %jus to generate text for the example
\begin{document}
\listoffigures
\clearpage
{%
\centering
\rule{3cm}{.9\textheight}% to simulate an actual figure
\captionlistentry[figure]{An image with a long caption}
}
% The caption:
\noindent\textbf{\figurename~\thefigure}:
\lipsum[1-3]
\bigskip
Regular text text text text text text text text text text text text text text text
text text text text text text
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
If you dont want this figure to be listed in the LoF, you can drop the line with the \captionlistentry command and manually increase the figure counter.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pierre
Posts: 5
Joined: Fri Apr 02, 2010 3:28 pm

Re: split a long caption across pages

Post by pierre »

Sorry for the delay.
Thanks a lot. It worked perfectly. :)
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: split a long caption across pages

Post by sommerfee »

A different idea: Using the fltpage package the caption would be placed on the page below or after the figure.
Post Reply