针对tikzpicture和caption之间的空白距离,可采用局部方法和全局方法来调整,具体如下:
- 局部方法,即对单个图进行处理:
在tikzpicture和caption之间添加\vspace*{3mm}即可
\begin{figure}
\begin{tikzpicture}
代码段
\end{tikzpicture}
\vspace*{3mm} % 关键代码行
\caption{The distribution of reuse locality blocks.}
\label{fig:reuseloc}
\end{figure}
- 全局方法,即对latex文档的全部图进行处理:
在documentclass和document之间添加\setlength{\abovecaptionskip}{-10pt}
即可
\documentclass[review]{elsarticle}
\setlength{\abovecaptionskip}{-10pt} %关键设置行
\begin{document}
缩小多个subfigures之间的距离
方法:在subfigure之间添加\vskip -10pt参数即可,如下:
\begin{figure}
\subfigure{
} \vskip -10pt %关键设置行
\subfigure{
}
\end{figure}