From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [PATCH] ox-latex: Add scrartcl LaTeX class Date: Wed, 23 Sep 2015 19:16:43 +0100 Message-ID: <87vbb1ngqc.fsf@ucl.ac.uk> References: <87zj0fd07u.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeobB-0000fe-Hr for emacs-orgmode@gnu.org; Wed, 23 Sep 2015 14:16:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zeob8-0002cX-97 for emacs-orgmode@gnu.org; Wed, 23 Sep 2015 14:16:57 -0400 Received: from mail-am1on0105.outbound.protection.outlook.com ([157.56.112.105]:10304 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zeob8-0002Zy-0o for emacs-orgmode@gnu.org; Wed, 23 Sep 2015 14:16:54 -0400 In-Reply-To: (Sebastian Boehm's message of "Wed, 23 Sep 2015 18:59:35 +0200") 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: Sebastian Boehm Cc: emacs-orgmode@gnu.org On Wednesday, 23 Sep 2015 at 18:59, Sebastian Boehm wrote: > Hi Nicolas, > > On 21 September 2015 at 21:46, Nicolas Goaziou wrote: >> But can't users needing a non-default class customize their >> own `org-latex-classes? Or is there an entitling reason to offer it out >> of the box? > > you are of course right; users can always customise their own setup. > However, when sharing Org files with other people this kind of tight > coupling between the Org file and the user's Emacs configuration can > become quite problematic. Yes, this is a real problem. One solution, but not an ideal one, is to use file local variables to define org-latex-classes (and any other variables) as appropriate for the document. It's not ideal because unfortunately most of org's variables (as well as many of emacs's own) are "global" and hence affect the functionality of org visiting other buffers. I find myself having separate emacs instances for some org files for this reason. I had thought that maybe using #+bind: would solve this problem but the export engine looks for the LaTeX class before binding takes effect. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-270-g256fef