%%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End:
In order to define the latex command e.g. include -shell-escape you have to add the following line before the End: command into the latex file:
%%% LaTeX-command: "latex -shell-escape"
%%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End:
%%% LaTeX-command: "latex -shell-escape"
(require 'reftex)
(setq reftex-plug-into-AUCTeX t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(add-hook 'latex-mode-hook 'turn-on-reftex
Ctrl-c =
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq preview-gs-options '("-q" "-dNOSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4"))
Ctrl-c p-d