In my file, I use the package
minted that requires to use the option
-shell-escape to be passed towards the processor (in this case
pdflatex). In order to use this option with emacs and AUCTeX, I needed to add the following line into my LaTeX-file:
%%% TeX-command-extra-options: "-shell-escape" in the block local variables. So the end of my file looks like this:
%%% Local Variables: %%% coding: utf-8 %%% mode: latex %%% TeX-engine: pdflatex %%% TeX-master: t %%% TeX-command-extra-options: "-shell-escape" %%% End:
Every time I load that file into emacs, emacs asks me if I want to use this option, as emacs considers it "unsafe". I said yes.
However, I have an issue when I'm compiling my LaTeX-file (with package
mintedincluded). The log file says that
Package minted Error: You must invoke LaTeX with the -shell-escape flag.
Beyond that, I have the following error:
Package minted Error: You must have `pygmentize' installed to use this package.
But I don't understand why since when I open an shell and I enter the following command:
`pdflatex -shell-escape myfile.tex`
then the file is compiling.
Moreover, I edited this file last week and I didn't have this problem with pygmentize. Since I have started to use prelude yesterday, the problem is related to that.
So how can I resolve these two problems?