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}
Related videos on Youtube
Author by
Sev T.
Updated on April 05, 2020Comments
-
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. over 7 yearsThank you for your quick answer - that solves my problem.
-
Sev T. over 7 yearsThis template is great. It solved my problem. Thank you.