0

I would like to arrange 4 sets of 3 subfigures onto one page as shown in the attached picture. I want each of the 4 sets of subfigures to have their own figure number and caption. Is it possible to split the page into quarters in which I could place the subfigure?

enter image description here

2
2

Into one figure environment arrange as many subfloat (subfig package) and caption you need. Following code uses minipages to distribute the figures.

\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}
\begin{minipage}{.5\textwidth}
\centering
\subfloat[][first]{\includegraphics[height=1cm]{example-image}}\\
\subfloat[][second]{\includegraphics[height=1cm]{example-image}}\\
\subfloat[][third]{\includegraphics[height=1cm]{example-image}}
\caption{First row, first column}
\end{minipage}
\begin{minipage}{.5\textwidth}\centering
\subfloat[][first]{\includegraphics[height=1cm]{example-image}}\\
\subfloat[][second]{\includegraphics[height=1cm]{example-image}}\\
\subfloat[][third]{\includegraphics[height=1cm]{example-image}}
\caption{First row, second column}
\end{minipage}\\[2cm]
\begin{minipage}{.5\textwidth}\centering
\subfloat[][first]{\includegraphics[height=1cm]{example-image}}\\
\subfloat[][second]{\includegraphics[height=1cm]{example-image}}\\
\subfloat[][third]{\includegraphics[height=1cm]{example-image}}
\caption{Second row, first column}
\end{minipage}
\begin{minipage}{.5\textwidth}\centering
\subfloat[][first]{\includegraphics[height=1cm]{example-image}}\\
\subfloat[][second]{\includegraphics[height=1cm]{example-image}}\\
\subfloat[][third]{\includegraphics[height=1cm]{example-image}}
\caption{Second row, second column}
\end{minipage}
\end{figure}
\end{document}

enter image description here

1

You can combine several minipage environments with, e.g., \subcaptionbox inside one figure:

\documentclass{article}

\usepackage{subcaption}
\usepackage{mwe}% for example-image

\begin{document}
\begin{figure}
  \begin{minipage}{.5\linewidth}
    \subcaptionbox{First
      subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-a}}
    \subcaptionbox{Second subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-b}}
    \subcaptionbox{Third
      subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-c}}
    \caption{This is the first figure}
  \end{minipage}%
  \begin{minipage}{.5\linewidth}
    \subcaptionbox{First
      subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-a}}
    \subcaptionbox{Second subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-b}}
    \subcaptionbox{Third
      subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-c}}
    \caption{This is the second figure}
  \end{minipage}

  \bigskip
  \begin{minipage}{.5\linewidth}
    \subcaptionbox{First
      subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-a}}
    \subcaptionbox{Second subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-b}}
    \subcaptionbox{Third
      subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-c}}
    \caption{This is the third figure}
  \end{minipage}%
  \begin{minipage}{.5\linewidth}
    \subcaptionbox{First
      subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-a}}
    \subcaptionbox{Second subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-b}}
    \subcaptionbox{Third
      subfigure}[\linewidth][c]{\includegraphics[height=2em,width=.7\linewidth]{example-image-c}}
    \caption{This is the forth figure}
  \end{minipage}
\end{figure}
\end{document}

own number

Note: floatrow allows only one \caption per float unless you use, e.g., \ffigbox. See the floatrow manual, section 1.2 for more information.

2
  • i observe that you liked \subcaptionbox environment :-). +1 for nice answer.
    – Zarko
    Nov 8 '17 at 12:54
  • @Zarko: Maybe I like \subcaptionbox command. But mostly I like to use a package with very good support of a very pleasing author. Nov 8 '17 at 13:01
1

an alternative with using tabularx and subfig packages ...

\documentclass{article}
\usepackage{graphicx}% for example-image
\usepackage{subfig}
\usepackage{tabularx}

%-------------------------------- show page layout, only for test
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
\begin{figure}
  \begin{tabularx}{\linewidth}{@{}
                        *{2}{>{\centering\arraybackslash}X}
                               @{} }
    \subfloat[First subfigure] {\includegraphics[height=4em,width=0.8\linewidth]{example-image-a}}

    \subfloat[First subfigure]     {\includegraphics[height=4em,width=0.8\linewidth]{example-image-b}}

    \subfloat[First subfigure]     {\includegraphics[height=4em,width=0.8\linewidth]{example-image-c}}
    \caption{This is the first figure}
        &
    \subfloat[First subfigure] {\includegraphics[height=4em,width=0.8\linewidth]{example-image-a}}

    \subfloat[First subfigure]     {\includegraphics[height=4em,width=0.8\linewidth]{example-image-b}}

    \subfloat[First subfigure]     {\includegraphics[height=4em,width=0.8\linewidth]{example-image-c}}
    \caption{This is the second figure}
        \\
%
    \subfloat[First subfigure] {\includegraphics[height=4em,width=0.8\linewidth]{example-image-a}}

    \subfloat[First subfigure]     {\includegraphics[height=4em,width=0.8\linewidth]{example-image-b}}

    \subfloat[First subfigure]     {\includegraphics[height=4em,width=0.8\linewidth]{example-image-c}}
    \caption{This is the third figure}
        &
    \subfloat[First subfigure] {\includegraphics[height=4em,width=0.8\linewidth]{example-image-a}}

    \subfloat[First subfigure]     {\includegraphics[height=4em,width=0.8\linewidth]{example-image-b}}

    \subfloat[First subfigure]     {\includegraphics[height=4em,width=0.8\linewidth]{example-image-c}}
    \caption{This is the forth figure}
  \end{tabularx}
\end{figure}
\end{document}

enter image description here

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.