emacs-orgmode
[Top][All Lists]
Advanced

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

[O] unfortunate "feature interaction" of org-export and emacs-latex-auct


From: Martin Steffen
Subject: [O] unfortunate "feature interaction" of org-export and emacs-latex-auctex mode
Date: Mon, 9 Nov 2015 18:54:17 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hi,

Perhaps it's not really a "fault" of org (nor of auctex), but both
things interact unfortunate. 

The reason is: when I export org to LaTeX, and I visit the latex file
afterwards, I want that auctex/emacs is instructed about some facts. Thus I
like to have some lines such as

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 

at the end of the latex file. Org allows that, in that I add the
"LATEX-only" export at the end of the org-file

#+BEGIN_LATEX
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
#+END_LATEX


Doing that produces the desired lines at the end of the generated latex, and
if I visit the latex file, emacs/auctex is instructed according to my wishes.


Now the problem: If I refresh the /org/ file, emacs/org thinks that actually
the file is a latex file (due to the line "mode: latex") and switches from
org-mode to latex-mode.


It's a minor thing, obviously, but I just wonder if there's an easy workaround.

Martin
 




reply via email to

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