图片之间的标题太近了。如何才能在图片之间留出一些空间,但不移动图片本身?
\documentclass{article}
\usepackage{graphicx,subfigure}
\begin{document}
\begin{figure*}
\centering
\subfigure[One two three four five six seven eight ninte ten eleven twelve]{\label{fig:a}\includegraphics[width=0.32\textwidth]{A.png}}
\subfigure[One two three four five six seven eight ninte ten eleven twelve]{\label{fig:b}\includegraphics[width=0.32\textwidth]{B.png}}
\subfigure[One two three four five six seven eight ninte ten eleven twelve]{\label{fig:b}\includegraphics[width=0.32\textwidth]{B.png}}
\caption{my caption}
\end{figure*}
\end{document}
答案1
您可以使用caption
包并调整 s 的字幕宽度subfigure
。caption
还提供了其他方法来自定义您的字幕,有关详细信息,请参阅其文档。
请注意,subfigure
包已过时,您可以使用subcaption
包(提供subfigure
环境)或subfig
包(提供subfloat
)。我使用了subcaption
包。
\documentclass[twocolumn]{article}
\usepackage{caption,subcaption,showframe} %% remove showframe
\usepackage{graphicx}
\captionsetup[subfigure]{width=0.8\linewidth} %% adjust here
\begin{document}
\begin{figure*}
\centering
\begin{subfigure}{.33\textwidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{One two three four five six seven eight ninte ten eleven twelve}\label{fig:a}
\end{subfigure}%
\hfill
\begin{subfigure}{.33\textwidth}
\includegraphics[width=\linewidth]{example-image-b}
\caption{One two three four five six seven eight ninte ten eleven twelve}\label{fig:b}
\end{subfigure}%
\hfill
\begin{subfigure}{.33\textwidth}
\includegraphics[width=\linewidth]{example-image-c}
\caption{One two three four five six seven eight ninte ten eleven twelve}\label{fig:b}
\end{subfigure}
\caption{my caption}
\end{figure*}
\end{document}
\captionsetup
您可以通过在环境内部添加figure*
(而不是前言)使其成为本地的。
\begin{figure*}
\captionsetup[subfigure]{width=0.8\linewidth}
\centering
\begin{subfigure}{.33\textwidth}
.
.
.