As is explained in here, I find minted package is pretty cool for source code listing.
My question is how to use minted package with AucTeX/emacs?
For command line I can use pdflatex -shell-escape SOURCE, but
- Q1 : How can I modify the AucTeX to insert the
-shell-escape? I mean, how to change the action for C–c+C–c? - Q2 : Do I need special key other than C–c+C–c for
-shell-escapeoption? Or, is it just OK to use it without any problem? - Q3 : What is the
-shell-escapefor?
Q1: You need to edit the way LaTeX is called by AucTeX. One way of doing this is to add the following to your .emacs file:
Q2: Once you have made the changes, all calls to LaTeX with C-c C-c will use the
-shell-escapeoption.Q3: See Konrad’s answer. Note that this method will enable
-shell-escapefor all files edited in AucTeX, so can be a potential security risk if using other peoples packages or files.