![带子图的图题空间](https://linux22.com/image/431283/%E5%B8%A6%E5%AD%90%E5%9B%BE%E7%9A%84%E5%9B%BE%E9%A2%98%E7%A9%BA%E9%97%B4.png)
我无法对齐垂直空间。间隙太大。我想使用 \vspace{-1ex} 代码,但我做不到。
\begin{figure}[h]
\centering
\begin{subfigure}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{Figures/Chapter I/Added/2c.png}
\caption{}
\label{fig:1.6b}
\end{subfigure}
~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc.
%(or a blank line to force the subfigure onto a new line)
\begin{subfigure}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{Figures/Chapter I/Added/2d.png}
\caption{}
\label{fig:1.6c}
\end{subfigure}
\caption{(a), (b) [\cite{13}]}\label{fig:1.6}
\end{figure}
答案1
\documentclass{article}
\usepackage[]{subcaption}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}[h]
\centering
\begin{subfigure}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{Figures/Chapter I/Added/2c.png}
\caption{}
\label{fig:1.6b}
\end{subfigure}
~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc.
%(or a blank line to force the subfigure onto a new line)
\begin{subfigure}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{Figures/Chapter I/Added/2d.png}
\caption{}
\label{fig:1.6c}
\end{subfigure}
\vspace{-2\baselineskip}
\caption{(a), (b) [\cite{13}]}\label{fig:1.6}
\end{figure}
\end{document}
或者——你可以尝试以下
\documentclass{article}
\usepackage[labelformat=empty,skip=1em]{subcaption}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}[h]
\centering
\begin{subfigure}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{Figures/Chapter I/Added/2c.png}
\caption{}
\label{fig:1.6b}
\end{subfigure}
~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc.
%(or a blank line to force the subfigure onto a new line)
\begin{subfigure}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{Figures/Chapter I/Added/2d.png}
\caption{}
\label{fig:1.6c}
\end{subfigure}
\vspace{-2\baselineskip}
\caption{(a), (b) [\cite{13}]}\label{fig:1.6}
\end{figure}
\end{document}