emacs Whizzytex 乳膠選項,minted,-shell-escape

emacs Whizzytex 乳膠選項,minted,-shell-escape

我想將 Whizzytex 與 emacs 一起使用,因為與其他可用的所見即所得選項相比,它的速度更快。唯一阻止我這樣做的是我的乳膠文件使用 minted 套件來突出顯示原始程式碼。 Minted 需要使用 -shell-escape 標誌來執行 Latex,但我不知道如何指示 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"

有了該文件,我現在可以編輯包含生成的程式碼區塊(或需要 -shell-escape 的其他模組)的 *.tex 檔案。

相關內容