I am trying to use minted package... Here is an example minimal.tex:
\documentclass{article}
\usepackage{minted}
\begin{document}
\begin{minted}{c}
int main() {
printf("hello, world");
return 0;
4
}
\end{minted}
\end{document}
I need to run pdflatex -shell-escape minimal in a terminal to compile it... When I try to compile it within Emacs as a usual tex file by C-c C-c, I got an error: Package minted Error: You must invoke LaTeX with the -shell-escape flag. Could anyone tell me where I could add this -shell-escape flag under Emacs?
Another small question is regarding minted.sty, at the moment I put it in the same folder as the tex files, which is not the best way I guess... Where do you often put .sty files?
-shell-escapeEmacs, does Customizing pdfLaTeX for a particular file with AUCTeX? or Using minted (source code LaTeX package) with emacs/auctex help? – Werner Dec 13 '11 at 7:13