[Tex/LaTex] Side by side figures containing subfloats

floatssubfloats

Is it possible to get two figure environments side by side across the top of a page, where both (or at least 1) contains subfloats? IE: Mock Up

And if so, how? I am currently using the subfig package with a combination of figure/subfloat in my document.

Best Answer

You can do it by using the packages floatrow and subfig together.

\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{floatrow}

\begin{document}
\begin{figure}[htbp]
\centering
\begin{floatrow}
\ffigbox[\FBwidth]
{
\subfloat[Caption]{\includegraphics[height=4cm,width=3cm]{image1a}}
\quad
\subfloat[Caption]{\includegraphics[height=4cm,width=3cm]{image1b}}
}{\caption{Caption here}}
\ffigbox{
\subfloat[Caption]{\includegraphics[height=4cm,width=3cm]{image2}}
}{\caption{Caption here}}
\end{floatrow}
\end{figure}
\end{document}

preview of code