Tips for debugging latex errors in Doxygen

故事扮演 提交于 2019-12-24 15:25:12

问题


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?

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


回答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.

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.

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.




回答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}$

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.



来源:https://stackoverflow.com/questions/1170406/tips-for-debugging-latex-errors-in-doxygen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!