latex -\begin{figure}[H] 有效,但\begin{figure}[htbp] 无效

标签 latex

关闭。这个问题是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!



您应该选择 htbph! , t! , b!p! , 我认为。

关于latex -\begin{figure}[H] 有效,但\begin{figure}[htbp] 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12941711/

相关文章:

Python 图表 : Latex Math rendering of node labels

r - 打印数据框时如何更改 stargazer 中的列名称?

LaTeX:设置除某些文档部分外的自定义行距

vim - 更正 GVim 中的错误后返回主 latex 文件

latex - 以双列 latex 形式在标题和正文之间输入数字

python - 在运行时验证 MathText 字符串

latex - 如何防止 LaTeX 在段落之间填充空格,以便下一节从下一页的顶部开始?

javascript - 如何在 CKEditor 中将 LaTex 渲染为实际数学?

emacs - 如何在 Org 模式下使用 SyncTeX?

macos - 如何在不增加尺寸的情况下修剪 eps 或 pdf