From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: unfortunate "feature interaction" of org-export and emacs-latex-auctex mode Date: Mon, 09 Nov 2015 21:38:37 +0100 Message-ID: <874mgusyb6.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvtDY-0001pb-QV for emacs-orgmode@gnu.org; Mon, 09 Nov 2015 15:39:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvtDC-00031x-H8 for emacs-orgmode@gnu.org; Mon, 09 Nov 2015 15:39:08 -0500 Received: from plane.gmane.org ([80.91.229.3]:38677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvtDC-00031M-BU for emacs-orgmode@gnu.org; Mon, 09 Nov 2015 15:38:46 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZvtDB-0007tk-1I for emacs-orgmode@gnu.org; Mon, 09 Nov 2015 21:38:45 +0100 Received: from tsn109-201-154-144.dyn.nltelcom.net ([109.201.154.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Nov 2015 21:38:45 +0100 Received: from rasmus by tsn109-201-154-144.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Nov 2015 21:38:45 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Martin Steffen writes: > 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 If it's only about setting the mode, you could use org-latex-compiler-file-string (in the git version), and set tex-master in a latex block... Rasmus -- Lasciate ogni speranza, voi che leggete questo.