Alfredo Buttari
2017-09-25 12:50:04 UTC
Hi,
I have a large .tex file with the following footer:
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: xetex
%%% TeX-command-extra-options: "-shell-escape --enable-write18 --synctex=1"
%%% End:
When I open it I am asked whether I want to accept the potentially unsafe
value for the TeX-command-extra-options. In this message the potentially
unsafe value corresponds to what I have in the footer, i.e., "-shell-escape
--enable-write18 --synctex=1". I hit yes and the file is opened. However,
if I ask emacs to describe variable TeX-command-extra-options (with C-h
C-v) I get this:
TeX-command-extra-options is a variable defined in `tex.el'.
Its value is "--synctex=1"
Original value was ""
Local in buffer hdr.tex; global value is ""
Automatically becomes buffer-local when set.
Documentation:
String with the extra options to be given to the TeX processor.
You can customize this variable.
It seems that the value of this variable is overwritten once again in some
other place. Note that this does not happen if I create a simple file
containing only (exactly the same footer):
\documentclass{article}
\begin{document}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: xetex
%%% TeX-command-extra-options: "-shell-escape --enable-write18 --synctex=1"
%%% End:
Could you please help me figure out what's happening?
regards,
Alfredo
I have a large .tex file with the following footer:
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: xetex
%%% TeX-command-extra-options: "-shell-escape --enable-write18 --synctex=1"
%%% End:
When I open it I am asked whether I want to accept the potentially unsafe
value for the TeX-command-extra-options. In this message the potentially
unsafe value corresponds to what I have in the footer, i.e., "-shell-escape
--enable-write18 --synctex=1". I hit yes and the file is opened. However,
if I ask emacs to describe variable TeX-command-extra-options (with C-h
C-v) I get this:
TeX-command-extra-options is a variable defined in `tex.el'.
Its value is "--synctex=1"
Original value was ""
Local in buffer hdr.tex; global value is ""
Automatically becomes buffer-local when set.
Documentation:
String with the extra options to be given to the TeX processor.
You can customize this variable.
It seems that the value of this variable is overwritten once again in some
other place. Note that this does not happen if I create a simple file
containing only (exactly the same footer):
\documentclass{article}
\begin{document}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: xetex
%%% TeX-command-extra-options: "-shell-escape --enable-write18 --synctex=1"
%%% End:
Could you please help me figure out what's happening?
regards,
Alfredo