关闭。这个问题是off-topic .它目前不接受答案。
想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。
9年前关闭。
Improve this question
我想将 png 文件插入到我的文档中。
基本上,像这样,它的工作原理(在调用“ float ”之后),
\begin{figure}[H]
\begin{center}
\includegraphics{myfigure}
\caption{short caption}{VERY LONG FIGURE LEGEND}
\label{fig:myfigure}
\end{center}
\end{figure}
但就像那样,它没有,
\begin{figure}[htbp!]
\begin{center}
\includegraphics{myfigure}
\caption{short caption}{VERY LONG FIGURE LEGEND}
\label{fig:myfigure}
\end{center}
\end{figure}
这对我来说很奇怪;显然我调用了
\usepackage{graphicx}
以及因为没有它,它首先将无法工作。任何建议可能是什么问题?更新:找到解决方案:
我在 http://anthony.liekens.net/index.php/LaTeX/SubscriptAndSuperscriptInTextMode 中定义了\textsuperscript 宏
在 Figures occurring after ^ and _ macros (was: LaTeX limitation?) 中草绘了一个修复程序,它似乎对我有用
干杯!!
最佳答案
我无法在这里测试,但我认为组合 htbp
和 !
不被允许。 !
定义 LaTeX 应该听取给定的放置说明符并按照您指定的方式放置图形。你说用htbp!
到 LaTeX 之类的东西
Place my image here, at the top, at the bottom or on a special page. And do it all!
您应该选择
htbp
或 h!
, t!
, b!
或 p!
, 我认为。
关于latex -\begin{figure}[H] 有效,但\begin{figure}[htbp] 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12941711/