@u7751 这个图都没上传成功...
另外你可以看一下mwe
宏包提供的example-image.pdf
图片。
反对一下@u79794 老师的观点
caption
宏包提供的\abovecaptionskip
与\belowcaptionskip
只能调节caption
与图片之间的距离
而要想调节浮动体(float)与文本(text)之间的距离,可以调整以下参数:
\textfloatsep
— distance between floats on the top or the bottom and the text;\floatsep
— distance between two floats;\intextsep
—— distance between floats inserted inside the page text (using h) and the text proper.
在你的例子中,可以调整\intextsep
的长度
\documentclass{article}
\usepackage[font=small]{caption}
\usepackage{lipsum}
\usepackage{graphicx}
\begin{document}
\setlength{\intextsep}{.2\baselineskip}
% change the distance between the caption and the bottom of the images
% \setlength\abovecaptionskip{.2\baselineskip}
% change the distance between the float and next text
\lipsum[1-2]
\begin{figure}[htbp]
\centering
\begin{minipage}{.49\linewidth}
\centering
\includegraphics[width=.99\linewidth]{example-image}
\caption{A}
\end{minipage}
\begin{minipage}{.49\linewidth}
\centering
\includegraphics[width=.99\linewidth]{example-image}
\caption{B}
\end{minipage}
\end{figure}
\lipsum[3]
\end{document}
问 如何全局设置图片与下方文字间距