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.

Having 3 figures that thematically should stay together in one figure environment as subfigures (I'm using subfig currently), I know that there's no way to allow those pictures to separate over few pages automatically with subfig (according to 13.pg of documentation).

Is there a way to do this with some other package? - OR - What's the most elegant way to do this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted
\documentclass{article}

\usepackage{subfig}
\usepackage{caption}
\usepackage[demo]{graphicx}
\makeatletter\def\CT{\def\@captype{figure}}\makeatother

\begin{document}

\begin{center}
\CT
\subfloat[My first subfig caption]{\includegraphics[height=8cm]{foo}}\quad
\subfloat[My second subfig caption]{\includegraphics[height=8cm]{foo}}

\subfloat[My third subfig caption]{\includegraphics[height=8cm]{foo}}\quad
\subfloat[My forth subfig caption]{\includegraphics[height=8cm]{foo}}

\subfloat[My fifth subfig caption]{\includegraphics[height=8cm]{foo}}\quad
\subfloat[My sixth subfig caption]{\includegraphics[height=8cm]{foo}}
\captionof{figure}{My caption for all subfigures together}
\end{center}

\end{document}
share|improve this answer
    
Could someone please explaing why this triggers the wanted behaviour? –  helt Nov 29 '12 at 13:13

Your Answer

 
discard

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