我正在尝试使用 doxygen 生成的 latex 文件将 latex 转换为 pdf。我正在使用 Doxygen 1.8.7。但是,我不断收到此错误:
!LaTex Error: Unknown float option 'H'.
...
1.6 \begin<figure>[H]
我已将其缩小为一个 .tex 文件,其中包含以下内容:
\hypertarget{group___a_m_s___common}{\section{A\+M\+S\+\_\+\+Common}
\label{group___a_m_s___common}\index{A\+M\+S\+\_\+\+Common@{A\+M\+S\+\_\+\+Common}}
}
Collaboration diagram for A\+M\+S\+\_\+\+Common\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=334pt]{group___a_m_s___common}
\end{center}
\end{figure}
\subsection*{Modules}
\begin{DoxyCompactItemize}
\item
\hyperlink{group___common___error___codes}{A\+M\+S Common Error Codes}
\end{DoxyCompactItemize}
\subsection{Detailed Description}
我从这里去哪里?我说它正在寻找它找不到的图像是否正确?
最佳答案
这确实是 float
包的问题。我有同样的问题。但是,仅添加 EXTRA_PACKAGES=float
并没有为我解决问题。我终于找到了this page它描述了 fixltx2e
包和 float
包之间的冲突,它生成了关于未知 H
选项的错误。因此,我在 doxygen 生成的 tex 文件(对我来说称为 refman.tex
)中注释掉了第 11 行的 \usepackage{fixltx2e}
。然后它转换为 pdf 没有任何进一步的问题。
关于pdf - Latex 到 PDF 错误未知 float 选项 'H' Doxygen,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25005090/