Graphics, Figures & TablesA problem to display all subfigures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Hut
Posts: 2
Joined: Mon Nov 23, 2009 9:56 am

A problem to display all subfigures

Post by Hut »

Hi,
I got this minor problem. Let me explain what it is as follows:
I use this code to insert 6 subfigures (4.3 a to f, for example). However, after compiling the code and checking the pdf file, all subfigures are only shown in ONLY ONE page no matter how I change the resolution of pictures, and the page only shows a part of those figure (supposed that one picture is shown in a page. So with 6 figures, they should be shown in 6 pages. Actually, only one and a half of those pictures are shown if I set the width = 4in. If I reduces the width to 2in, 4 and a half of pictures are shown - but never jump to the next page to show all 6 pictures). I do not understand why all 6 figures can not be shown in the next pages? Can anyone help me?
Here is my code:

Code: Select all

\begin{figure*} 
\centering
\subfloat[Figure 4.3a absdef]{\label{fig:12} \includegraphics[width=4in]{fig4_3a.png}} \qquad
\subfloat[Figure 4.3b absdef]{\label{fig:13} \includegraphics[width=4in]{fig4_3b.png}} \qquad
\subfloat[Figure 4.3c absdef]{\label{fig:14} \includegraphics[width=4in]{fig4_3c.png}} \qquad
\subfloat[Figure 4.3d absdef]{\label{fig:15} \includegraphics[width=4in]{fig4_3d.png}} \qquad
\subfloat[Figure 4.3e absdef]{\label{fig:16} \includegraphics[width=4in]{fig4_3e.png}} \qquad
\subfloat[Figure 4.3f absdef]{\label{fig:17} \includegraphics[width=4in]{fig4_3f.jpg}} \qquad
\caption{Figure 4.3 abcdef}
\label{fig:18}
\end{figure*}

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

A problem to display all subfigures

Post by localghost »

Hut wrote:I do not understand why all 6 figures can not be shown in the next pages?
The subfig package doesn't work this way. You can only insert sub-figures (with appropriate size) on one single page. For your purpose I see two possible solutions. You may combine the first point with the subfig package.


Best regards
Thorsten
Hut
Posts: 2
Joined: Mon Nov 23, 2009 9:56 am

Re: A problem to display all subfigures

Post by Hut »

Thank localghost. I did the second option: using subfloat package and it works well. I could not make the first option work. Anyway, I solved this problem.
Thanks again.
Post Reply