[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Making `TeX-command-extra-options' project-wide
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX] Making `TeX-command-extra-options' project-wide |
Date: |
Wed, 13 Apr 2016 17:08:23 +0200 |
Hi Matt,
2016-04-13 15:26 GMT+02:00 Matthew Leach <address@hidden>:
> 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.
There is indeed a possibility: add `TeX-command-extra-options' to the
list of variables stored in auto saved file. See `TeX-auto-store'
function.
Bye,
Mosè