2

I'm trying to put two separate images in one subfigure so that it can be combined with another one to complete a figure i.e.

(img-a) (img-b)     (img-c) (img-d)
      (a)                 (b)
        Figure 1: A caption

I've tried several methods but they never seem to work. Any ideas would be great.

  • 1
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user36296 Feb 8 '16 at 23:42
3

There's no limit on the number of images you can put in a subcaption environment:

\documentclass{article}
\usepackage{subcaption}
\usepackage{graphicx}

\begin{document}

\begin{figure}
\centering

\begin{subfigure}[b]{.4\textwidth}
\centering
\includegraphics[width=.4\textwidth]{example-image}\quad
\includegraphics[width=.4\textwidth]{example-image}

\caption{}
\end{subfigure}\quad
\begin{subfigure}[b]{.4\textwidth}
\centering
\includegraphics[width=.4\textwidth]{example-image}\quad
\includegraphics[width=.4\textwidth]{example-image}

\caption{}
\end{subfigure}

\caption{A caption}

\end{figure}

\end{document}

enter image description here

  • Thanks for the help. I was using the subfig package with subcaption and this may have brought about problems. – Joshua Aduol Feb 9 '16 at 11:37
  • 1
    @JoshuaAduol Without an example of your setup, it's difficult to give more advice. – egreg Feb 9 '16 at 11:39

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.