From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Beamer specific setupfile? Date: Tue, 13 Mar 2012 01:46:25 -0400 Message-ID: <8946.1331617585@alphaville> References: <5505.1331588928@alphaville> <6257.1331591439@alphaville> <6344.1331592244@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7KZF-0005Al-I0 for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 01:46:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7KZD-0002iz-R5 for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 01:46:41 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:13137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7KZD-0002hV-KD for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 01:46:39 -0400 In-Reply-To: Message from John Hendy of "Tue, 13 Mar 2012 00:02:55 CDT." 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: nicholas.dokos@hp.com, emacs-orgmode John Hendy wrote: > > I think the magic for latex headers happens in org-infile-export-plist: > > but the function has not been told about #+BEAMER_* stuff, so it'll need > > the addition of a few more cases to handle the beamer stuff. > > > Great. Thanks for checking into this. I don't know how to fix it, so > I'll simply stick to #+latex_header, as this is working fine at the > moment. It's interesting that #+beamer_ options work from the file > itself, but not from the setupfile, considering it sounds like all the > setupfile line does it treat the contents as if it's in the file > itself. Something's getting lost in there. > > org-infile-export-plist parses the current buffer and takes care of #+SETUPFILE: options (even recursive ones). It constructs an options property list and returns it. The latex exporter stashes it into org-export-latex-options-plist which is then consulted by the exporter (in all cases, including the beamer case). The trouble is that org-infile-export-plist does not know about #+BEAMER_HEADER_EXTRA or #+BEAMER_FRAME_LEVEL, so it does not put them in the plist it returns. It is a trivial thing to add them however: they are exactly analogous to LATEX_HEADER and LATEX_CLASS options, both of which org-infile-export-plist handles fine. Nick