梅威瑟:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{mwe}
\usepackage{lipsum}
\begin{document}
\begin{figure}
\begin{subfigure}[b]{0.475\textwidth}
\includegraphics[width=0.8\linewidth]{example-image}
\caption{\lipsum[1]}
\end{subfigure}%
\begin{subfigure}[b]{0.475\textwidth}
\includegraphics[width=0.8\linewidth]{example-image}
\caption{\lipsum[1]}
\end{subfigure}
\end{figure}
\end{document}
结果:
如您所见,子图 (a) 和 (b) 的标题之间没有间距。如何控制子图标题间距?
答案1
设置子标题的宽度并将子图置于其列的中心:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{mwe}
\usepackage{lipsum}
\begin{document}
\begin{figure}\centering
\captionsetup[subfigure]{width=0.9\linewidth}
\begin{subfigure}[b]{0.475\textwidth}
\centering
\includegraphics[width=0.8\linewidth]{example-image}
\caption{\lipsum[1]}
\end{subfigure}%
\begin{subfigure}[b]{0.475\textwidth}
\centering
\includegraphics[width=0.8\linewidth]{example-image}
\caption{\lipsum[1]}
\end{subfigure}
\end{figure}
\end{document}