Graphics, Figures & TablesHelp with formatting figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
chloe
Posts: 3
Joined: Thu Sep 08, 2011 1:04 pm

Help with formatting figures

Post by chloe »

Hi all,

I am trying to insert a figure followed by two which should be next to each other. I think i need to use the subfloat after the first figure. However, latex will not build the pdf. Could someone offer me some advice?

Thanks, Chloe

\begin{figure}
\centering
\includegraphics[width=0.9\textwidth]
{filename1}
\caption{}
\begin{figure}[p]
\centering
\subfloat
\includegraphics[width=0.8\textwidth]
{filename2}
\caption{}
\subfloat
\includegraphics[width=0.8\textwidth]
{filename3}
\caption{}
\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.

User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: Help with formatting figures

Post by sommerfee »

First of all you need to include the subfig package. Furthermore you are using the \subfloat command in a wrong way, see subfig package documentation for syntax and examples.
Post Reply