# Subfigures in subfigures in latex

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.

• 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

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}

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

\caption{}
\end{subfigure}

\caption{A caption}

\end{figure}

\end{document}


• 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
• @JoshuaAduol Without an example of your setup, it's difficult to give more advice. – egreg Feb 9 '16 at 11:39