I have a problem. I want to include 3 figures via subfigures. I want the first pic to be alone in the center and the second and third fig to be beneath. This is my code:
\begin{figure}
\centering
\begin{minipage}{0.8\textwidth}
\centering
\subfigure[First caption]
{
\includegraphics[width=0.39\textwidth]{82.pdf}
\label{fig:first_sub}
}
\\
\subfigure[Second caption]
{
\includegraphics[width=0.39\textwidth]{82.pdf}
\label{fig:second_sub}
}
\subfigure[Third caption]
{
\includegraphics[width=0.39\textwidth]{82.pdf}
\label{fig:third_sub}
}
\caption{Common figure caption.}
\label{fig:sample_subfigures}
\end{minipage}
\end{figure}
The problem is that I get an Error: "! Missing number, treated as zero." After my first pic and I don't know why…
Maybe you guys can help me. I'd appreciate it.
Best Answer
It seems that you use obsolete package
subfigure
. Instead it try to use for examplesubfig
which is replacement for it:It gives:
Addendum: Another better possibility -- as said Torbjørn T. in his comment -- is to use package
subcaption
. Considering it above code become:Obtained image is (almost) the same as before.