在Doxygen中调试乳胶错误的提示

时间:2021-02-03 19:27:42

Right now I get an error message saying:

现在我收到一条错误消息:

No file _formulas.aux.
...
! Missing $ inserted.
...

I've tried looking for and single @f$ tags in the code, but I have not been successful in locating the culprit thus far. How can I go about solving this specific issue?

我已经尝试在代码中寻找单个@ f $标签,但到目前为止我还没有成功找到罪魁祸首。我该如何解决这个具体问题?

In addition, what are some general tips for debugging latex errors in doxygen? Are there any log files somewhere?

另外,在doxygen中调试乳胶错误的一般技巧是什么?某处有任何日志文件吗?

2 个解决方案

#1


I use both Doxygen and LaTeX. When compiling formulas, Doxygen will take the contents of your LaTeX equations, copies the ones that haven't been generated to html/_formulas.tex (relative to the OUTPUT_DIRECTORY specified in the Doxyfile), attempt to compile the tex file, and then copies the result to png files.

我同时使用Doxygen和LaTeX。编译公式时,Doxygen将获取LaTeX方程的内容,将尚未生成的方法复制到html / _formulas.tex(相对于Doxyfile中指定的OUTPUT_DIRECTORY),尝试编译tex文件,然后复制png文件的结果。

If you use \f$ a+b \f$, the formula will appear inline; and if you use \f[ a+b \f] the formula will be in "display" style.

如果你使用\ f $ a + b \ f $,公式将以内联方式显示;如果使用\ f [a + b \ f],公式将为“显示”样式。

It sounds like one of your formulas has an error. If, while the command line is displaying the error, you edit the _formulas.tex file, you can probably track down the error. A "missing $" error probably means you forgot to close a set of braces somewhere.

听起来你的公式之一有错误。如果在命令行显示错误时编辑_formulas.tex文件,则可以追踪错误。 “丢失$”错误可能意味着您忘记在某处关闭一组括号。

#2


In latex, the $ symbol opens math mode, which usually means you're typesetting some sort of equation. If you have equations, surround them with $, e.g. $\frac{1}{2}$

在乳胶中,$符号打开数学模式,这通常意味着你要排版某种方程式。如果你有公式,用$表示它们,例如: $ \压裂{1} {2} $

i would assume that doxygen is just passing the .tex file to the command line, in which case there should be a latex log file with specific line numbers where errors occurred. The .log, .aux, etc. are in the same directory as your .tex file.

我会假设doxygen只是将.tex文件传递给命令行,在这种情况下,应该有一个乳胶日志文件,其中包含发生错误的特定行号。 .log,.aux等与.tex文件位于同一目录中。

#1


I use both Doxygen and LaTeX. When compiling formulas, Doxygen will take the contents of your LaTeX equations, copies the ones that haven't been generated to html/_formulas.tex (relative to the OUTPUT_DIRECTORY specified in the Doxyfile), attempt to compile the tex file, and then copies the result to png files.

我同时使用Doxygen和LaTeX。编译公式时,Doxygen将获取LaTeX方程的内容,将尚未生成的方法复制到html / _formulas.tex(相对于Doxyfile中指定的OUTPUT_DIRECTORY),尝试编译tex文件,然后复制png文件的结果。

If you use \f$ a+b \f$, the formula will appear inline; and if you use \f[ a+b \f] the formula will be in "display" style.

如果你使用\ f $ a + b \ f $,公式将以内联方式显示;如果使用\ f [a + b \ f],公式将为“显示”样式。

It sounds like one of your formulas has an error. If, while the command line is displaying the error, you edit the _formulas.tex file, you can probably track down the error. A "missing $" error probably means you forgot to close a set of braces somewhere.

听起来你的公式之一有错误。如果在命令行显示错误时编辑_formulas.tex文件,则可以追踪错误。 “丢失$”错误可能意味着您忘记在某处关闭一组括号。

#2


In latex, the $ symbol opens math mode, which usually means you're typesetting some sort of equation. If you have equations, surround them with $, e.g. $\frac{1}{2}$

在乳胶中,$符号打开数学模式,这通常意味着你要排版某种方程式。如果你有公式,用$表示它们,例如: $ \压裂{1} {2} $

i would assume that doxygen is just passing the .tex file to the command line, in which case there should be a latex log file with specific line numbers where errors occurred. The .log, .aux, etc. are in the same directory as your .tex file.

我会假设doxygen只是将.tex文件传递给命令行,在这种情况下,应该有一个乳胶日志文件,其中包含发生错误的特定行号。 .log,.aux等与.tex文件位于同一目录中。