1

What is the reason for the following error?

Package minted Error: You must invoke LaTeX with the -shell-escape flag.

5
2

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.

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