Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subfloat figures in latex

Tags:

latex

I am inputting a bunch of figures in Latex using

\begin{figure}[h]
   \centering
   \subfloat

etc.

How do I get the subfloat figures to go to the next page? What I mean is, I'm inputting a ton of figures so it'll definitely be more than one page but if I do separate figures for each the a, b, c, d, etc. for the captions will change, so ideally I'd like one enormous figure with a bunch of subfloats a through z on different pages - how do you do that? Right now, I simply can't see the subfloat figures that stretch over the page, so I'll need to get another page somehow.

like image 735
jp88 Avatar asked Jun 07 '10 15:06

jp88


People also ask

What is Subfloat LaTeX?

subfloat – Sub-numbering for figures and tables The subfloat package is not to be confused with the subfig package which generates sub-figures within one normal figure, and manages their placement; subfloat only affects captions and numbering. Sources. /macros/latex/contrib/subfloat.

How do I put 4 figures together in LaTeX?

Multiple subfigures can be put in multiple rows by adding a \newline after one row is complete. For example, if you have four figures and you want to put them in 2x2 style, put \newline after two subfigures which will be placed in the first rwo. The command will create a new row for rest of the subfigures.

How do I center a figure in LaTeX?

Centering. We center text or images using \begin{center} and \end{center}. Just put \begin{center} when you want to start centering, and \end{center} when you want to stop centering.

How do I put multiple pictures on one page in LaTeX?

Something like \begin{tabular}{cc}\includegraphics{fig1}&\includegraphics{fig2}\\ ... \end{tabular} might be all you need.


1 Answers

Separate the figures into batches that fit on one page and in the figure environments after the first put

\addtocounter{figure}{-1}

which will decrease the figure counter making it the same as for the previous bunch and then also add

\addtocounter{subfigure}{N}

where N is the number of subfigs that you have already placed, which will start the subfig counter from the correct value.

More on the subfigure package here (PDF).

like image 65
Timo Avatar answered Sep 29 '22 23:09

Timo