From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Including setupfile settings during subtree export (new exporter) Date: Fri, 22 Mar 2013 12:12:39 -0500 Message-ID: References: <87obebwj3s.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]:36341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ5WE-0007gf-B7 for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 13:12:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJ5WC-00073a-Ev for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 13:12:42 -0400 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:52889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ5WC-00073V-7Q for emacs-orgmode@gnu.org; Fri, 22 Mar 2013 13:12:40 -0400 Received: by mail-la0-f49.google.com with SMTP id fs13so7607533lab.8 for ; Fri, 22 Mar 2013 10:12:39 -0700 (PDT) In-Reply-To: <87obebwj3s.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 Fri, Mar 22, 2013 at 10:27 AM, Nicolas Goaziou wrote: > Hello, > > John Hendy writes: > >> In the past, exporting a subtree seemed to pull options from my >> #+setupfile line. > > And it should still do. > >> I've updated the line to the proper new syntax (#+include: >> "/path/to/setupfile.org"), but subtree export doesn't seem to be using >> the options set there (using =C-c C-e C-s l p= for LaTeX/PDF export). >> >> I tried using =#+include: "file"= as well as =#+setupfile: file= >> inside the subtree properties drawer without success. > > Inside the property drawer? A property drawer can only contain node > properties, e.g.: > > :PROP: value Yeah, I didn't really know... was just going by this recent post which featured that, so since it was fresh in my mind, I tried: - http://www.mail-archive.com/emacs-orgmode@gnu.org/msg68321.html > >> If I mark the same subtree with :export: tag (no other trees are >> marked), it works properly and uses my setupfile options. >> >> Any suggestions? If this was an oversight, my vote would be that a >> buffer-set setupfile would apply to subtree exports unless overridden >> by a property-drawer setting (even though I don't currently know that >> the property draw setting is for a setupfile). > > I think I need an ECM to understand the problem you're describing. Sure. Try this: #+begin_src setupfile #+AUTHOR: John Henderson #+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry} #+latex_header: \usepackage{mathpazo} #+end_src #+begin_src test-setupfile.org #+include: "/path/to/setupfile" * Heading 1 Some text in the form of a longer paragraph to test the margin settings using the =geometry= package. Some text in the form of a longer paragraph to test the margin settings using the =geometry= package. Some text in the form of a longer paragraph to test the margin settings using the =geometry= package. List: - item 1 - item 2 - item 3 #+end_src #+begin_src minimal-config ;; set load paths ;; set load dirs and global config options (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/") (add-to-list 'load-path "~/.elisp/org.git/lisp/") (require 'ox-latex) #+end_src Procedure: - emacs -Q - M-x load-file minimal-config - C-x C-f setupfile-test.org - Now compare the results of =C-c C-e l p= vs. (while on * Heading 1) =C-c C-e C-s l p=. Best regards, John > > > Regards, > > -- > Nicolas Goaziou