4

I receive the following errors:

! Package minted Error: You must invoke LaTeX with the -shell-escape flag.
! Package minted Error: You must have `pygmentize' installed to use this packag

in TexMaker Settings i wrote:

LaTeX : "/usr/texbin/latex" -interaction=nonstopmode %.tex -shell-escape

PdfLaTex: "/usr/texbin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex -shell-escape

But the error still doesn't vanish ...

  • 1
    Move %1.tex to the end. Also, did you install pygmentize? – Sigur Apr 27 '15 at 18:16
  • @Sigur Do you want to write an answer? – Torbjørn T. Jun 6 '15 at 21:56
  • @TorbjørnT., done! – Sigur Jun 7 '15 at 5:01
7

The error says ! Package minted Error: You must invoke LaTeX with the -shell-escape flag.

So you have to use the flag -shell-escape when compiling, that is, use it before the name of the file.

To do this, move %.tex to the end.

-interaction=nonstopmode -shell-escape %.tex

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.