有没有办法强制将整页图像显示在将它们放在tex文件中的位置

问题描述 投票:1回答:2

有没有办法编辑下面的代码,以便强制图像出现在文本中的位置,例如像命令一样使用[H]?或者如何合并[H]命令?

我试过[Htb]

\begin{figure*}[tb]
\centering 
\makebox[\textwidth]{\includegraphics[width=.9\paperwidth]{./fig/fig5.eps}} 
\caption{The SAP data model based on an UML class diagram: classes and relationships.}
\label{fig:Fig5} 
\end{figure*}

非常感谢

latex
2个回答
0
投票

要使用H选项,you need to include the float package

\usepackage{float}

0
投票

你可以尝试改变

\begin{figure*}[tb]

\begin{figure*}[!h]

要么

\begin{figure*}[!ht]

但如果图像非常大或整页,可能会出现其他一些黑客攻击。

© www.soinside.com 2019 - 2024. All rights reserved.