[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Making `TeX-command-extra-options' project-wide

From: Matthew Leach
Subject: [AUCTeX] Making `TeX-command-extra-options' project-wide
Date: Wed, 13 Apr 2016 14:26:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Hi all,

I'm writing a document that requires the '-shell-escape' option to be
set when invoking LaTeX.  Reading the AUCTeX documentation, I see that I
can set the variable `TeX-command-extra-options' to "-shell-escape".  I
have done this for the master TeX file by inserting [1] at the bottom of
it.  When I open any of the included files I am prompted that this is an
unsafe variable and am asked whether I would like this to be set; I hit
'y' when prompted.  However, the option isn't getting set inside an
included TeX file - it's value is "".  The variable does have the
correct value in the TeX master buffer, however.

Is there a way I can make included files inherit the options of the TeX
master file?  I have quite a number of source files and don't want to
have to add this line to them all.

%%% Local Variables:
%%% TeX-command-extra-options: "-shell-escape"
%%% mode: latex
%%% TeX-master: t
%%% End:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]