子图:如何为多个子图的两个图形添加标题?

子图:如何为多个子图的两个图形添加标题?

在此处输入图片描述

大家好,

我想在 b) 和 c) 已有的标题之外,为其添加一个标题。d) 和 e) 也一样。

有谁知道这是怎么做到的吗?

到目前为止,我使用:

\begin{figure}
\caption{....}
\centering
\begin{subfigure}[h!]{0.49\textwidth} 
\includegraphics[width=\textwidth]{Images/women_1.png}
\caption{\small \centering \textmd{Baseline}}
\end{subfigure}
\begin{subfigure}[h!]{0.49\textwidth} 
\includegraphics[width=\textwidth]{Images/women_2.jpg}
\caption*{\small \centering \textmd{}}\label{}
\end{subfigure}
\begin{subfigure}[h!]{0.49\textwidth}
\includegraphics[width=\textwidth]{Images/women_3.png}
\caption{\centering \small \textmd{Control group 2}}
\end{subfigure}
\begin{subfigure}[h!]{0.49\textwidth}
\includegraphics[width=\textwidth]{Images/cg3_women_4.png}
\caption{\centering \small \textmd{Control group 3}}
\end{subfigure}
\begin{subfigure}[h!]{0.49\textwidth} 
\includegraphics[width=\textwidth]{Images/women_5.png}
\caption{\small \centering \textmd{Inclusion of dismissals}}
\end{subfigure}
\begin{subfigure}[h!]{0.49\textwidth} 
\includegraphics[width=\textwidth]{Images/women_6.png}
\caption{\small \centering \textmd{Inclusion of all displacements}}
\end{subfigure}
\caption*{...}
\label{...}
\end{figure} \\

答案1

像这样吗?

在此处输入图片描述

\documentclass{article} % or some other suitable document class
\usepackage[demo]{graphicx} % remove `demo' option in real doc.
\usepackage{subcaption}
\captionsetup[figure]{skip=0.5\baselineskip}
\captionsetup[subfigure]{labelfont=bf,skip=0.25\baselineskip}

\begin{document}

\begin{figure}
\centering\small

\caption{\dots} \label{fig:dots} % don't forget to supply suitable caption text

\begin{subfigure}{0.49\textwidth} 
\includegraphics[width=\textwidth]{Images/women_1.png}
\caption{Baseline}
\end{subfigure}\hfill\null

\medskip
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\textwidth]{Images/women_3.png}
\caption{Control group 2}
\end{subfigure}\hfill
\begin{subfigure}{0.49\textwidth}
\includegraphics[width=\textwidth]{Images/cg3_women_4.png}
\caption{Control group 3}
\end{subfigure}
Some words about subfigures b and c.

\bigskip
\begin{subfigure}{0.49\textwidth} 
\includegraphics[width=\textwidth]{Images/women_5.png}
\caption{Inclusion of dismissals}
\end{subfigure}\hfill
\begin{subfigure}{0.49\textwidth} 
\includegraphics[width=\textwidth]{Images/women_6.png}
\caption{Inclusion of all displacements}
\end{subfigure}
Some words about subfigures d and e.
\end{figure}

\end{document}

相关内容