Linked Questions

Popular Questions

Remove Warning When Enabling shell-escape in Lyx

Asked by At

I have enabled minted+pygmentize to highlight my program listings, and since pygmentize is an external program, the shell-escape flag must be enabled on pdflatex in Lyx. Now, every time I compile a document without removing this option in the global settings, I get this warning.

shell-escape warning

The following LaTeX backend has been configured to allow execution of external programs for any document:

pdflatex $$i -shell-escape

This is a dangerous configuration. Please, consider using the support offered by LyX for allowing this privilege only to documents that actually need it, instead.

The dialog indicates that there is some document-specific setting that can enable the shell-escape flag, however I see no such option in the document settings, or anything on Google about this error, save one mail archive that only explains why the dialog appears.

Is there some way to set the shell-escape flag from the latex preamble? Or is there some document setting that allows the shell-escape flag that I have been unable to find?

Related Questions