![使用文本元素减少图像垂直间距](https://linux22.com/image/249962/%E4%BD%BF%E7%94%A8%E6%96%87%E6%9C%AC%E5%85%83%E7%B4%A0%E5%87%8F%E5%B0%91%E5%9B%BE%E5%83%8F%E5%9E%82%E7%9B%B4%E9%97%B4%E8%B7%9D.png)
我正在做一个 .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}
不要对徽标使用浮动环境,它可能会浮动,而且大小命令不带参数,它们是影响同一组中所有后续文本的声明。