How to add -shell-escape option in TexShop

I am using the minted.sty package, and it is required that I use the -shell-escape option when compiling latex / xelatex. I can do this through the console / terminal. However, I want to add this parameter to TexShop. I am a WinEdit pre-user on Windows, but recently switched to Mac and TexShop, so I don’t know how to do this?

Here is the console output:

 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 
+6
source share
1 answer

if you are still looking for an answer:

  • Go to settings
  • Go to the "Engine" tab
  • Go to the "pdfTeX" field
  • In the LaTeX input field, add -shell-escape at the end.

before: pdflatex --file-line-error --synctex=1

after: pdflatex --file-line-error --synctex=1 --shell-escape

+5
source

Source: https://habr.com/ru/post/981252/


All Articles