Graphics, Figures & TablesMultiple double-page figures with caption on preceeding page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
geois
Posts: 11
Joined: Tue Apr 06, 2010 8:47 am

Multiple double-page figures with caption on preceeding page

Post by geois »

Hi,

I have a number of double-page figures which I wish to present one after the other, with captions for all the figures on the page which precedes them.

The figures have a "left" and a "right" page, so I'm using dpfloat.

I've attached a small picture illustrating the effect I'm after.
fig_question.png
fig_question.png (24.36 KiB) Viewed 3621 times
At the moment I've achieved this somewhat (see the MWE, below) using afterpage, captionof and dpfloat. The effect is reasonable.

My question is: in the MWE below, I can get captions to print out on the preceding page, but at the top of the page. Is it possible to have the captions print one after the other at the bottom of the page?

Code: Select all

\documentclass[11pt,a4paper,twoside,openright]{report}
\usepackage[a4paper,bindingoffset=0cm,textheight=22cm,margin=4cm]{geometry}
\usepackage{caption}
\usepackage{lipsum}
\usepackage{afterpage}
\usepackage{dpfloat}

    \begin{document}
    
    \lipsum[1-5]
    
    \afterpage{
           
    \captionof{figure}{This is the caption for the first set of images over page. It would be great if these captions could be at the bottom of this page.}
    \captionof{figure}{This is the caption for the section set of images over page. Seems to indent if the caption is too short?}
    \vspace{\intextsep}
   
  	\begin{figure}  
      \begin{leftfullpage}
  	    \fbox{\rule[-10cm]{0pt}{\textheight}Left page of figure 1\hspace{5cm}}
  	  \end{leftfullpage}
    \end{figure}
    
    \begin{figure}
      \begin{fullpage}
  	    \fbox{\rule[-10cm]{0pt}{\textheight}Right page of figure 1\hspace{5cm}}
  	  \end{fullpage}
    \end{figure}
    
    \begin{figure}  
    \begin{leftfullpage}
  	\fbox{\rule[-10cm]{0pt}{\textheight}Left page of figure 2\hspace{5cm}}
  	\end{leftfullpage}
    \end{figure}
    
    \begin{figure}
    \begin{fullpage}
  	\fbox{\rule[-10cm]{0pt}{\textheight}Right page of figure 2\hspace{5cm}}
  	\end{fullpage}
    \end{figure}
    
    
    }
    
    \lipsum[5-15]

    \end{document}
Cheers,

Alastair
Last edited by geois on Wed Sep 01, 2010 4:47 am, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: Multiple double-page figures with caption on preceeding

Post by sommerfee »

You may take a peek at the fltpage package but I have no clue if it can be combined with the dpfloat one.

Unfortunately I have to go to work right now so I can't play around with your MWE yet, I'm sorry.
geois
Posts: 11
Joined: Tue Apr 06, 2010 8:47 am

Re: Multiple double-page figures with caption on preceeding

Post by geois »

Hi Sommerfee,

Thanks for the hint. I have something that works now using fltpage.

I'll post a MWE of my solution for anyone who finds this in the future, just as soon as I tidy it up.

Thanks again,

Alastair.
geois
Posts: 11
Joined: Tue Apr 06, 2010 8:47 am

Multiple double-page figures with caption on preceeding page

Post by geois »

Here is a MWE for anyone who might wonder about a solution.

For myself, this was required for my PhD thesis, where I have a number of figures which spread completely across two pages. I therefore wanted to have a caption on the preceding "right" page, with the figure spread across the following "left" and "right" pages. It is my desire to combine a number of the figure spreads, as the chapter in which they appear has little text.

In this MWE I have reduced this to two figures across a page spread with two captions at the bottom of the preceding page.

I have made use of the settings leftFloats and CaptionBefore from fltpage, which mean the the FPfigure will be positioned on a "left" page. I've then tucked the second "right" page in behind it, and enclosed it all in an afterpage environment. There is a bit of a hack to make the FPfigure caption look like two captions. I believe this could easily be expanded to any number of figures and captions.

One thing I have noticed, and I will ask about in another thread: FPfigure seems to indent the figure slightly, compared to a simple figure environment. I am not sure if this is expected behaviour.

(MiKTeX 2.8, pdfLaTeX, Windows XP Pro)

Alastair.

Code: Select all

%Just the setup I'm using for my thesis. Only necessary part is twoside.
\documentclass[11pt,a4paper,twoside,openright]{report}
\usepackage[a4paper,bindingoffset=0cm,textheight=22cm,margin=4cm]{geometry}
\usepackage{caption}
\usepackage{lipsum}
\usepackage{afterpage}
%Means that fltpage will put FPfloats on a left page, with the caption on the precedding right page.
\usepackage[leftFloats,CaptionBefore,noHints]{fltpage}

  \begin{document}
    
  %Just to see how the captions output in the list of figures
  \listoffigures
  \clearpage
    
  %Just to tell LaTeX which are left and right pages - chapter will start on right page only.
  \chapter{Introduction}
    
  %Some text...
	\lipsum[1-5]
    
  %We want the figures to be seamlessly surrounded by text.
  \afterpage{
            
  \begin{FPfigure}%This will be on a left page, with the caption on the preceeding right page.
  %Hack to make it look like there are two captions.
  %The first "`caption" is speerated from the second by \vspace{\intextsep}\\
  %The caption also hides the list enry for the second figure, and a label for the second figure so that we can make reference to it.
  \caption[List entry for FPfigure]{Caption for FPfigure.\vspace{\intextsep}\\Figure~\ref{rectangle2} : Caption for second figure.\captionlistentry[figure]{List entry for second figure.}\label{rectangle2}}
		\fbox{\rule[-10cm]{0pt}{\textheight}First figure.\hspace{5cm}}
		\label{rectangle1}
	\end{FPfigure} 

  %This will be on the right page immediatley after the FPFigure.
  %This is the figure represented by the label rectangle2
  \begin{figure}
		\fbox{\rule[-10cm]{0pt}{\textheight}Second figure.\hspace{5cm}}
  \end{figure}  
  }%End afterpage.
  
  %Some more text
  \lipsum[5-30]

\end{document}
Post Reply