What is the reason for the following error?
Package minted Error: You must invoke LaTeX with the -shell-escape flag.
What is the reason for the following error?
Package minted Error: You must invoke LaTeX with the -shell-escape flag.
The package minted uses an external software »pygments«, written in Python. So pdfLaTeX needs to run »third party software«. This brings security issues: the external software can do anything, as far as your rights on the computer allow that.
Be aware of this when you start pdfLaTeX with -shell-escape. Pygments is used a lot, so if there were an issue, somebody would probably notice it. But if you ever start experimenting with Lua programms of whatever source, maybe think twice.
By the way, the name »shell-escape« refers to the fact that the external software is started via a system call in a shell of the OS.
-shell-escapeflag. It's pretty clear, in my opinion. – Werner Jul 21 '17 at 19:25-shell-escape(e.g.pdflatex -shell-escape). – TeXnician Jul 21 '17 at 19:25