制作带有共享标题的子图表格

制作带有共享标题的子图表格

我正在尝试制作如下所示的图表。我使用了 \subfloat,但不知道如何为子图制作共享标题(每个矩形都是一个图形)。任何建议都将不胜感激。

在此处输入图片描述

答案1

像这样的事情(在包的帮助下subcaption)?

在此处输入图片描述

\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}

相关内容