![如何使图像的字幕(a或b)正确定位?](https://linux22.com/image/289288/%E5%A6%82%E4%BD%95%E4%BD%BF%E5%9B%BE%E5%83%8F%E7%9A%84%E5%AD%97%E5%B9%95%EF%BC%88a%E6%88%96b%EF%BC%89%E6%AD%A3%E7%A1%AE%E5%AE%9A%E4%BD%8D%EF%BC%9F.png)
我希望以下字幕(a 或 b)能够正确显示,而不是像下图所示的当前视图:
另外,如何在两幅图像之间添加更多间距?
\begin{figure*}[htp]
\centering
\subfigure [a] {\includegraphics[scale=0.5]{lap1.png}}\quad
\subfigure [b]{\includegraphics[scale=0.5]{lap2.png}}
\hfill
\caption { (a) A ring graph (b) Its Laplacian matrix}
\end{figure*}
答案1
我认为您使用的subfigure
软件包已过时。请使用subcaption
提供环境的软件包subfigure
或subfig
提供 的软件包subfloat
。
\documentclass{article}
\usepackage{subcaption,graphicx}
\begin{document}
\begin{figure*}[htp]
\centering
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[width=3cm]{example-image-a}
\caption{}
\end{subfigure}%
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[width=3cm]{example-image-b}
\caption{}
\end{subfigure}
\caption { (a) A ring graph (b) Its Laplacian matrix}
\end{figure*}
\end{document}