在 Lyx 中启用 shell-escape 时删除警告

Remove Warning When Enabling shell-escape in Lyx

我启用了 minted+pygmentize 来突出显示我的程序列表,并且由于 pygmentize 是一个外部程序,因此必须在 Lyx 中的 pdflatex 上启用 shell-escape 标志。现在,每次我在全局设置中不删除此选项的情况下编译文档时,都会收到此警告。

The following LaTeX backend has been configured to allow execution of external programs for any document:

pdflatex $$i -shell-escape

This is a dangerous configuration. Please, consider using the support offered by LyX for allowing this privilege only to documents that actually need it, instead.

该对话框表明有一些特定于文档的设置可以启用 shell-escape 标志,但是我在文档设置中没有看到这样的选项,或者 Google 上没有关于此的任何内容错误,保存一个邮件存档,只解释为什么会出现该对话框。

有什么方法可以从 latex 序言中设置 shell-escape 标志吗?或者是否有一些文档设置允许我一直找不到的 shell-escape 标志?

我似乎在那个 mail archive 中找到了答案,这是另一个建议的对话文本。

转到文档->设置->格式并检查 "Allow running of external programs." 这仅为当前文档启用 shell-escape 标志。