From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Including setupfile settings during subtree export (new exporter) Date: Sat, 23 Mar 2013 16:10:48 -0500 Message-ID: References: <87obebwj3s.fsf@gmail.com> <87620h27br.fsf@gmail.com> <871ub5264z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJViG-00046U-H7 for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 17:10:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJViE-0003TW-Gs for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 17:10:52 -0400 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:53824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJViE-0003T9-3f for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 17:10:50 -0400 Received: by mail-la0-f47.google.com with SMTP id fj20so9123037lab.6 for ; Sat, 23 Mar 2013 14:10:49 -0700 (PDT) In-Reply-To: <871ub5264z.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode On Sat, Mar 23, 2013 at 3:49 PM, Nicolas Goaziou wrote: > John Hendy writes: > >> Thanks for the clarification. For me (since I'm not an elisper), the >> mechanics aren't too important. All I really want is the correct way >> to apply org-mode settings to a buffer or a subtree by default, unless >> I specify otherwise inside a subtree to override the buffer-wide >> setupfile. > > At the moment, there's no way to override a #+setupfile: keyword > locally. I guess I don't understand the purpose of #+include, then. It seems we have only two options: 1) #+setupfile: Will apply to entire buffer as well as subtree exports. Cannot be overridden in subtrees. 2) #+include: Applies to entire buffer export only; does nothing for subtree exports. What's the preferred way to customize subtrees? Just add #+latex: or #+latex_header: options inside the subtree? Going by the LaTeX export guide (http://orgmode.org/worg/org-tutorials/org-latex-export.html), I don't see recommendations for this. As a use case, perhaps I have a subtree with beamer-compatible markup (each subtree will fit on a slide), but that I might also include in the whole buffer, or perhaps a different css file for the whole buffer vs. the subtree. Can this be accomplished? > >> Based on the above, should that line be removed from the Worg update >> guide? If so, I can do that. > > I think so. > Will do. >> I'll change back to #+setupfile! > > Note that LaTeX packages added through SETUPFILE can also be found > during latex fragments previewing, which isn't true for INCLUDE > keywords. > > Thanks! John > Regards, > > -- > Nicolas Goaziou