Combining tables and figures with common subtitle

2,793

Are you looking for something like this:

\documentclass[11pt]{article}

\usepackage{caption,subcaption}
\usepackage{graphicx,booktabs}

\begin{document}

\begin{figure}[tbp]
  \centering
  \begin{minipage}[b]{1.0\linewidth}
    \centering
    \subcaption{Panel A subtitle}
    \label{fig:sub-a}
    \includegraphics[width=0.3\textwidth]{example-image-1x1}
    \qquad
    \begin{tabular}[b]{@{}ll@{}}
      \toprule
      Foo & Bar \\\midrule
      1 & 2 \\
      \bottomrule
    \end{tabular}
  \end{minipage}
  \vspace{.5ex}
  \par
  \begin{minipage}[b]{1.0\linewidth}
    \centering
    \subcaption{Panel B subtitle}
    \label{fig:sub-b}
    \includegraphics[width=0.3\textwidth]{example-image-1x1}
    \qquad
    \begin{tabular}[b]{@{}ll@{}}
      \toprule
      Foo & Bar \\\midrule
      1 & 2 \\
      \bottomrule
    \end{tabular}
  \end{minipage}
  \caption{Title of Figure}
  \label{fig:one}
\end{figure}

\end{document}

enter image description here

Share:
2,793

Related videos on Youtube

Sev T.
Author by

Sev T.

Updated on April 05, 2020

Comments

  • Sev T.
    Sev T. over 3 years

    I am trying to obtain the following:

    Figure 1: Title

    (A) Panel A subtitle

    Figure on the left - Table on the right

    (B) Panel B subtitle

    Figure on the left - Table on the right

    (C) Panel C subtitle

    Figure on the left - Table on the right

    I tried to get there using a mix of minipage and subfloat but I really struggle with the subtitles. I would like a single, centered, subtitle for each figure and its corresponding table. How can I do that?

    Thanks for the help!

  • Sev T.
    Sev T. over 7 years
    Thank you for your quick answer - that solves my problem.
  • Sev T.
    Sev T. over 7 years
    This template is great. It solved my problem. Thank you.