方法:自动计算剩余空间然后调整图片大小适应文档
宏包:
代码:
\begin{figure}[h!]
\centering
\includegraphics[
height=\dimexpr\pagegoal-\pagetotal-4\baselineskip\relax,
width=\textwidth,
keepaspectratio]
{graph}
\caption{Survey results}
\end{figure}
其他参看文章:https://blog.csdn.net/happyangry/article/details/103762494