3

I have to place two sidewaysfigure spanned each one on different pages.

\begin{sidewaysfigure}
 \ContinuedFloat
 \centering
 \subfloat[Change in ABC]{\label{fig:abc}\includegraphics[scale=0.6]{./abc.png}}
 \quad
 \subfloat[Change in DEF]{\label{fig:def}\includegraphics[scale=0.6]{./def.png}}
 \caption{Change in ABC and DEF}
 \label{fig:abcdef}
\end{sidewaysfigure}

But, when I use the above code, (or even when I change \quad to \clearpage) the figures appears in the same page.

9
  • Please see tex.stackexchange.com/questions/47645/…. If this is what you are after please post some more details on figure sizes etc... and will try and assist you. Apr 25, 2012 at 9:39
  • Thanks. However, this is not the problem. The two figures are graphs of dimension 1024x768. Each graph should spread a whole page in order to get enough information to analyze. But, these two figures have to be plotted as subfigures. I hope this would be enough. Apr 25, 2012 at 10:06
  • Please consider providing a full MWE (minimum working example) that produces the unwanted outcome you're trying to address. Which LaTeX packages are you loading, and what are the paper and the textblock sizes? Incidentally, because you insert a \quad rather than a paragraph break, LaTeX will definitely try to place the two subfloats side by side.
    – Mico
    Apr 25, 2012 at 11:25
  • I am using texlive in FC13 (kpathsea version 3.5.6). Instead of \quad i have tried \qquad, \pagebreak, \newpage etc. In the outcome, both the figures appears on a page with second half of the first pic and first half of the second pic. If I use \quad, they appear side by side (with only a little portion visible from the second pic). Apr 26, 2012 at 5:17
  • Simply use two sidewaysfigure environments here!?
    – user2574
    Apr 26, 2012 at 6:47

1 Answer 1

3

It seems you are using \ContinuedFloat the wrong way. It is supposed to be used in the second of two figure environments, both of which contain \subfloats. See the example in section 2.2.3 The \ContinuedFloat Command of the subfigmanual.

A possible solution using sidewaysfigure would then be

\documentclass{article}
\usepackage{rotating}
\usepackage[lofdepth]{subfig}
\usepackage{kantlipsum}  % to create dummy text
\begin{document}
\listoffigures

\kant[1-3] 
\begin{sidewaysfigure}
\centering
 \subfloat[Change in ABC]{\label{fig:abc}\includegraphics{example-image-a}}
 \caption{Change in ABC and DEF\label{fig:abcdef}}
\end{sidewaysfigure}
\begin{sidewaysfigure}
 \ContinuedFloat
 \centering
 \subfloat[Change in DEF]{\label{fig:def}\includegraphics{example-image-b}}
 % \caption[]{Change in ABC and DEF} % Not necessary
  % optional argument empty to suppress duplicate entry in LoF
\end{sidewaysfigure}
\kant[4-5]
\end{document}

You must have a \caption in the first float/sidewaysfigure, but in the second (and any subsequent figures) it is not required. If you do include a \caption in these, add an empty optional argument, else the main figure is listed multiple times in the LoF.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .