2

I'm trying to get the following layout for three figures in LaTeX enter image description here

However, thus far I'm not really getting anywhere. What I've found is a way to put them next to each other, but they are too large to fit next to each other. I used

\begin{figure}
    \centering
    \begin{subfigure}{0.33\textwidth}
        \centering
        \includegraphics[height=1.7in]{something.eps}
        \caption{}
    \end{subfigure}%
    ~
        \begin{subfigure}{0.33\textwidth}
        \centering
        \includegraphics[height=1.7in]{something.eps}
        \caption{}
    \end{subfigure}%
    ~ 
    \begin{subfigure}{0.5\textwidth}
        \centering
        \includegraphics[height=1.7in]{something.eps}
        \caption{}
    \end{subfigure}
    \caption{Some caption}
    \label{label}
\end{figure}

But this simply positions them horizontally. Could anyone help me figure out how to put the figures in the above layout?

  • 1
    What is your preambule ? Please give a complete MWE. – Tarass Apr 29 '14 at 14:38
  • What's the question? – Bernard Apr 29 '14 at 14:38
  • I apologize, I didn't fully think the post through I suppose. My question is how I can achieve such a layout in LaTeX, as I haven't succeeded myself. – user129412 Apr 29 '14 at 14:41
2

enter image description here

\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption,array}

\begin{document}

\begin{figure}
    \centering
    \begin{tabular}{cc}
    \begin{subfigure}{0.33\textwidth}
        \centering
        \includegraphics[height=1.7in]{figure-1}
        \caption{}
    \end{subfigure}%
    &
        \begin{subfigure}{0.33\textwidth}
        \centering
        \includegraphics[height=1.7in]{figure-1}
        \caption{}
    \end{subfigure}%
    \\
    % uncomment next line
    % \multicolumn{x}{c}{%
    \begin{subfigure}{0.5\textwidth}
        \centering
        \includegraphics[height=1.7in]{figure-1}
        \caption{}
    \end{subfigure}%}// <- uncomment
    % comment next line
    & \\
    \end{tabular}
    \caption{Some caption}
    \label{label}
\end{figure}
\end{document}
  • Thank you very much. I'm having some issues with aligning the a,b,c under the figures, but I'm not sure that's something that can be done independently of the figure itself. Apart from that it's great! If only I had 4 figures instead of 3 though.. – user129412 Apr 29 '14 at 15:08
  • on the second line try \multicolumn{c}{2}{your image} \\` instead off your image& \\` – Tarass Apr 29 '14 at 15:21
  • I'm sorry, I don't follow completely. At which line should I add that? – user129412 Apr 29 '14 at 20:32
  • @user129412 See my edit. – Tarass Apr 30 '14 at 6:41
  • I feel rather stupid, but it says gives the error ! Missing number, treated as zero. – user129412 Apr 30 '14 at 13:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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