emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* unfortunate "feature interaction" of org-export and emacs-latex-auctex mode
@ 2015-11-09 18:54 Martin Steffen
  2015-11-09 20:11 ` Marcin Borkowski
  2015-11-09 20:38 ` Rasmus
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Steffen @ 2015-11-09 18:54 UTC (permalink / raw)
  To: emacs-orgmode

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
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-10  6:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-09 18:54 unfortunate "feature interaction" of org-export and emacs-latex-auctex mode Martin Steffen
2015-11-09 20:11 ` Marcin Borkowski
2015-11-09 20:49   ` Nick Dokos
2015-11-09 21:08     ` Marcin Borkowski
2015-11-10  6:51   ` Martin Steffen
2015-11-09 20:38 ` Rasmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).