From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Including setupfile settings during subtree export (new exporter) Date: Sat, 23 Mar 2013 21:24:08 +0100 Message-ID: <87620h27br.fsf@gmail.com> References: <87obebwj3s.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJUzB-0002jO-60 for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 16:24:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJUzA-0005Zy-95 for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 16:24:17 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:55930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJUzA-0005Zq-2V for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 16:24:16 -0400 Received: by mail-wg0-f44.google.com with SMTP id dr12so1357454wgb.35 for ; Sat, 23 Mar 2013 13:24:15 -0700 (PDT) In-Reply-To: (John Hendy's message of "Fri, 22 Mar 2013 12:12:39 -0500") 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: John Hendy Cc: emacs-orgmode Hello, John Hendy writes: > #+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" Use "#+setupfile:" instead of "#+include:" There's a major difference between "setupfile" and "include" keyword here: the former applies to the whole buffer, whereas the latter is only expanded in the part being exported. In your case, the INCLUDE keyword doesn't belong to the subtree, so it is never expanded. Regards, -- Nicolas Goaziou