0

当我尝试在带有 LaTeX 命令的模块上运行 doxywizard 时,例如(Fortran):

!> @brief
!> Here's some stuff for LaTeX: @f$(Foo)@f$

module Foo
...

我在日志文件中收到两个错误:

...
Generating bitmaps for formulas in HTML...
sh: latex: command not found
error: Problems running latex. Check your installation or look for typos in _formulas.tex and check _formulas.log!
Generating image form_0.png for formula
sh: dvips: command not found
error: Problems running dvips. Check your installation!
Generating index page...
...

latex位于 /usr/local/bin 中,它在我的路径中,并且dvips在 /Library/TeX/texbin 中,它也在我的路径中,并且都从终端执行。我也尝试设置 LATEX_CMD_NAME = /usr/local/bin/latex 无济于事。如果我doxygen使用向导生成的 Doxyfile 从命令行运行,则 LaTeX 会正确生成,所以这似乎是向导的问题。有没有另一种方法来告诉向导如何找到latex命令?

4

1 回答 1

0

从 finder运行doxywizard时,它使用全局设置的路径,而不是$HOME/.bashrc. 因此,有许多解决方案,包括将/usr/local/bin等添加到全局路径 ( ) 或在中/etc/bashrc创建链接,并始终从终端运行向导,这是我选择的选项。/usr/local/bin/Applications/Doxygen.app/Contents/MacOS/Doxywizard

于 2019-02-25T14:16:33.147 回答