当插入较长的图片或表格时,模板一般会另起一页插入这些图片或表格,导致图表前后的留白过多
一、调整图片和图题的距离,或内容间隔的命令
- \vspace{-0.8cm} %调整图片与上文的垂直距离;
- \setlength{\belowdisplayskip}{3pt}和{\setlength\abovedisplayskip{0pt}分别调整图片/公式/表格与下方展示或上方展示的内容的距离
调整 距离的单位为pt或cm。 - \setlength{\abovecaptionskip}{0.cm} %调整标题上方的距离
- \setlength{\abovecaptionskip}{0.cm} %调整标题下方的距离;
\begin{figure}[h!]
\centering %使图片居中显示
\vspace{-0.8cm} %调整图片与上文的垂直距离
\setlength{\abovecaptionskip}{0.cm} %调整标题上方的距离
\setlength{\abovecaptionskip}{0.cm} %调整标题下方的距离
\setlength{\belowdisplayskip}{3pt}
\includegraphics[width=15cm]{figures/RQ1.pdf}
\caption{Mean for RQ1}
\label{Fig: RQ1}
\end{figure}
原文链接:https://blog.youkuaiyun.com/cdpxc/article/details/109894147
二、插入图片为pdf / eps 格式
插入.jpg / .png 有时候可能会出现图片模糊的问题,于是需要插入.pdf或.eps文件
一个有用的网址,用于PDF文件去白边。
https://mypdftools.com/cn/crop-pdf