我正在做一个 .cls 文件,我想减少图像和标题之间的间距,文档如下图所示
其代码如下。
\begin{figure}[h]
\includegraphics[height=3.6cm,width=3.1cm]{./images/miniplace}
\end{figure}
\begin{center}
\LARGE{\scshape Institute of Extreme Resources Of Fun}\\
\end{center}
有什么建议么?
答案1
你不需要放置\includegraphics
在figure
环境中。在你的情况下可能
\begin{center}
\includegraphics[height=3.6cm,width=3.1cm]{./images/miniplace}
\LARGE\scshape Institute of Extreme Resources Of Fun
\end{center}
可以。如果图形必须左对齐,那么说
\begin{flushleft}
\includegraphics[height=3.6cm,width=3.1cm]{./images/miniplace}
\centering
\LARGE\scshape Institute of Extreme Resources Of Fun
\end{flushleft}
答案2
{\includegraphics[height=3.6cm,width=3.1cm]{./images/miniplace\par
{\centering\LARGE\scshape Institute of Extreme Resources Of Fun\par}
不要对徽标使用浮动环境,它可能会浮动,而且大小命令不带参数,它们是影响同一组中所有后续文本的声明。