3

I am trying to make a table of figures like below. I used \subfloat but have no clue how I can make shared caption for subfigures (every rectangle is a figure). Any advice will be appreciated.

enter image description here

2

1 Answer 1

6

Something like this (with the help of the subcaption package)?

enter image description here

\documentclass[demo]{article} % omit 'demo' option in real doc.
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}

\begin{figure}
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{fig1a}

\medskip
\includegraphics[width=0.42\textwidth,height=.1\textheight]{fig1b}%
\hfill
\includegraphics[width=0.52\textwidth,height=.1\textheight]{fig1b}
\caption{Caption 1}
\end{subfigure}%
\hfill % maximize the separation
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{fig2a}

\medskip
\includegraphics[width=0.42\textwidth,height=.1\textheight]{fig2b}%
\hfill
\includegraphics[width=0.52\textwidth,height=.1\textheight]{fig2c}
\caption{Caption 2}
\end{subfigure}

\bigskip
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{fig3a}

\medskip
\includegraphics[width=0.52\textwidth,height=.1\textheight]{fig3b}%
\hfill
\includegraphics[width=0.42\textwidth,height=.1\textheight]{fig3b}
\caption{Caption 3}
\end{subfigure}%
\hfill % maximize the separation
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{fig4a}

\medskip
\includegraphics[width=0.52\textwidth,height=.1\textheight]{fig4b}%
\hfill
\includegraphics[width=0.42\textwidth,height=.1\textheight]{fig4c}
\caption{Caption 4}
\end{subfigure}

\caption{Overall caption}
\end{figure}

\end{document}
3
  • 1
    +1 excellento mio moro
    – js bibra
    Oct 10, 2020 at 15:23
  • is it possible to do this with the subfig package? Nov 14, 2020 at 17:49
  • @user3236841 - Short answer: I think so. Slightly longer answer: Please post a new query, in which you ask for a subfig-based solution. I'm afraid I simply don't know the subfig package well enough.
    – Mico
    Nov 14, 2020 at 22:04

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.