如何在 TexShop 中添加 -shell-escape 选项



我正在使用minted.sty包,它要求我在latex/xelatex编译期间使用-shell-escape选项。我可以通过控制台/终端执行此操作。但是,我希望将此选项添加到TexShop中。我是Windows上WinEdit的先前用户,但最近切换到Mac和TexShop,所以不知道该怎么做?

以下是控制台输出:

Package ifplatform Warning: 
shell escape is disabled, so I can only detect ifwindows.
))
! Package minted Error: You must invoke LaTeX with the -shell-escape  flag.
See the minted package documentation for explanation.
Type  H <return>  for immediate help.
...                                              
l.54 makeatletter
如果您

仍在寻找答案:

  • 转到首选项
  • 转到标签"引擎"
  • 转到字段"pdfTeX"
  • 在 LaTeX 输入字段中,在末尾添加 --shell-escap。

之前: pdflatex --file-line-error --synctex=1

之后:pdflatex --file-line-error --synctex=1 --shell-escape

最新更新