Using minted (source code LaTeX package) with emacs/auctex

后端 未结 3 1951
夕颜
夕颜 2021-02-08 10:02

As is explained in here, I find minted package is pretty cool for source code listing.

My question is how to use minted package with AucTeX/emacs? For command line I ca

3条回答
  •  独厮守ぢ
    2021-02-08 10:51

    I can only answer question 3:

    What is the '-shell-escape' for?

    minted uses a third-party application, pygmentize, to process the source code. LaTeX usually doesn’t allow calling other applications for security reasons (a rogue package could otherwise call aribtrary code). To explicitly enable calling external applications, you need to enable this so-called escape to the shell – which, on most LaTeX installations, is done via the -shell-escape switch.

提交回复
热议问题