Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to place three figures like this on the page:

(a) (b)
  (c)

How do I achieve this using subfloat or any other method in LaTeX? The three figures need to have a common caption and label.

I have tried this:

\begin{figure}[h]
\centering
\begin{tabular}{c c}
\subfloat[] { \includegraphics[scale=0.4]{1.pdf} }
&
\subfloat[] { \includegraphics[scale=0.4]{2.pdf} }
\\
\multicolumn{2}{c}
\subfloat[] { \includegraphics[scale=0.6]{3.pdf} }
\end{tabular}
\caption{Some caption}
\label{some-label}
\end{figure}

But, this is displaying [] for the third figure instead of (c). Also it displays [] to one side of the page instead of center.

share|improve this question

2 Answers 2

up vote 5 down vote accepted

If I understand what you would like, then one method would be to use a couple of minipages and the subfig package. Spacing etc. could be adjusted to your needs:

enter image description here

\documentclass{article}
\usepackage{mwe}
\usepackage{subfig}
\begin{document}

\begin{figure}

\begin{minipage}{.5\linewidth}
\centering
\subfloat[]{\label{main:a}\includegraphics[scale=.5]{example-image-a}}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\centering
\subfloat[]{\label{main:b}\includegraphics[scale=.5]{example-image-b}}
\end{minipage}\par\medskip
\centering
\subfloat[]{\label{main:c}\includegraphics[scale=.5]{example-image-c}}

\caption{my fig}
\label{fig:main}
\end{figure}

\end{document}
share|improve this answer
    
Works fine, except it doesn't display (a) (b) or (c) below the figures. I need these to refer to the specific sub-figure in the text I am writing. –  Ashwin Jul 27 '12 at 6:06
    
I interpreted common caption and label to mean something different. I edited the solution. –  Scott H. Jul 27 '12 at 6:14
1  
In this case, the minipages aren't really necessary. –  Torbjørn T. Jul 27 '12 at 9:21

Here's a possible solution using the subfigure environment from the subcaption package:

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{subcaption}

\begin{document}

\begin{figure}
\begin{subfigure}{.5\linewidth}
\centering
\includegraphics{image1}
\caption{}
\label{fig:sub1}
\end{subfigure}%
\begin{subfigure}{.5\linewidth}
\centering
\includegraphics{image2}
\caption{}
\label{fig:sub2}
\end{subfigure}\\[1ex]
\begin{subfigure}{\linewidth}
\centering
\includegraphics{image3}
\caption{}
\label{fig:sub3}
\end{subfigure}
\caption{Three subfigures}
\label{fig:test}
\end{figure}

As we can see in Figures~\ref{fig:sub1}, \ref{fig:sub2}, and~\ref{fig:sub3}...

\end{document}

enter image description here

The demo option for graphicx was only used to replace actual figures with black rectangles. Do not use that option in your actual document,

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.