[Tex/LaTex] LaTeX minted Error

errorsmintedtexmaker

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 …

Best Answer

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
Related Question