I'm trying to create figure that contains many subfigures and I want it to span multiple pages. I'm using the subfigure
package to create my figure:
\usepackage{subfigure}
\begin{figure}[!hbp]
\begin{center}
\subfigure[caption1]{\includegraphics[width = 12cm]{img/plot.png}}
\subfigure[caption2]{\includegraphics[width = 12cm]{img/plot2.png}}
\end{center}
\end{figure}
After some googling I found a solution but using another package called subfig
. However when I tried to use it, I get an error. I get the error just the moment I put the declaration to use \usepackage{subfig}
.
Here is the error:
So I either need a solution to work with subfigure
or a solution to work with subfig
.
subfigure
package is deprecated; use either thesubfig
or thesubcaption
package. Please provide more information regarding the multi-page nature of the material containing the subfigures. E.g., do you want the material to be contained in a singlefigure
environment? How should the subfigures be numbered: Consecutively as in (a), (b), ..., or in some other style?caption
package. If that's the case, ditch thesubfig
(orsubfigure
) package and load thesubcaption
package instead. Then, search for "ContinuedFloat
" on this site and you'll find several postings about making afigure
(ortable
) extend across more than one page.subfig
is deprecated, and now I'm confused which to use! I have one context (figure) that have subfigures (a,b,c). I want the subfigures to be placed either vertically one after the other, or next to each other ... as space allows.subfigure
and now it compiles withsubfig
. I was using TeXShop but now I switched to TextMate.