emacs whizzytex latex 选项,minted,-shell-escape

emacs whizzytex latex 选项,minted,-shell-escape

我想将 whizzytex 与 emacs 一起使用,因为它的速度比其他可用的 wysiwyg 选项更快。唯一阻止我这样做的是我的 latex 文档使用 minted 包来突出显示源代码。Minted 要求 latex 运行时使用 -shell-escape 标志,而我不知道如何指示 whizzytex 使用此标志运行 latex。例如,使用

%; whizzy -latex "latex -shell-escape"

似乎不起作用。我怎样才能让 whizzytex 与 minted 模块一起工作?

答案1

whizzytex 文档中说:

For instance, a typical configuration line will be:

   %; whizzy subsection -dvi "xdvi -s 3"

It tells whizzytex to run in subsection slicing mode and use a dvi style
viewer called with the command xdvi -s 3. This is also equivalent to

   %; whizzy subsection -dvi xdvi -s 3

since Emacs removes outer double-quotes in option arguments.

我认为这就是为什么像这样的一行

%; whizzy -latex "latex -shell-escape" -initex "latex -ini -shell-escape"

在我的 *.tex 文件中无法工作。我现在的解决方案是whizzy.sh在我的工作目录中放置一个自定义内容:

INITEX="latex -ini -shell-escape"
LATEX="latex -shell-escape"

有了这个文件,我现在可以编辑包含 minted 代码块(或其他需要 -shell-escape 的模块)的 *.tex 文件。

相关内容