From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Beamer specific setupfile? Date: Mon, 12 Mar 2012 18:30:39 -0400 Message-ID: <6257.1331591439@alphaville> References: <5505.1331588928@alphaville> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7DlN-0003tO-Qt for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 18:31:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7DlL-00026X-HL for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 18:30:45 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:4069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7DlL-00026J-A1 for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 18:30:43 -0400 In-Reply-To: Message from John Hendy of "Mon\, 12 Mar 2012 17\:09\:43 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: > On Mon, Mar 12, 2012 at 4:48 PM, Nick Dokos wrote: > > John Hendy wrote: > > > >> I use beamer a lot for work and decided to create a beamer-specific > >> setupfile to clean up my org files a bit. My files typically contain a > >> header like so: > >> > >> --- > >> #+latex_class: beamer > >> #+startup: beamer > >> #+options: toc:nil latex:t tex:t > >> #+latex_class_options: [presentation,bigger] > >> #+beamer_frame_level: 1 > >> #+beamer_header_extra: > >> \usetheme[alternativetitlepage=3Dtrue,titleline=3Dtrue,titlepagelogo= =3D../pics/pic.jpg]{Torino} > >> #+beamer_header_extra: \usecolortheme{freewilly} > >> > >> #+latex_header: \usepackage{tikz} > >> #+latex_header: > >> \usetikzlibrary{decorations,arrows,automata,positioning,backgrounds} > >> > >> #+latex_header: \usepackage{setspace} > >> #+latex_header: \setstretch{1.3} > >> > >> #+latex_header: \usepackage{lmodern} > >> #+latex_header: \usepackage{booktabs} > >> #+AUTHOR: =C2=A0 =C2=A0John Henderson > >> --- > >> > >> I tried inserting the above into a file called =3Dbeamer-setup.org=3D = and > >> simply doing: > >> --- > >> #+setupfile: ~/org/aux/beamer-setup.org > >> --- > >> > >> This doesn't seem to work, however. My theme doesn't get picked up, > >> for example. If I put the contents into the file directly, I'm all > >> set. Any suggestions on why this might be the case? > >> > > > > C-c C-c on the setupfile line? The doc says > > > > ,---- > > | `#+SETUPFILE: file' > > | =C2=A0 =C2=A0 =C2=A0This line defines a file that holds more in-buffe= r setup. > > | =C2=A0 =C2=A0 =C2=A0Normally this is entirely ignored. =C2=A0Only whe= n the buffer is parsed > > | =C2=A0 =C2=A0 =C2=A0for option-setting lines (i.e. when starting Org = mode for a file, > > | =C2=A0 =C2=A0 =C2=A0when pressing `C-c C-c' in a settings line, or wh= en exporting), > > | =C2=A0 =C2=A0 =C2=A0then the contents of this file are parsed as if t= hey had been > > | =C2=A0 =C2=A0 =C2=A0included in the buffer. =C2=A0In particular, the = file can be any other > > | =C2=A0 =C2=A0 =C2=A0Org mode file with internal setup. =C2=A0You can = visit the file the > > | =C2=A0 =C2=A0 =C2=A0cursor is in the line with `C-c ''. > > `---- > > > > and when I try the export, it fails to find "freewilly.sty" (no surprise > > there), which seems to show that the file *is* processed. >=20 > Yeah, I should have just posted an example with an included theme > instead of the one I usually use. I think I tracked it down. First, I > added =3Dt=3D to the list of class options: > --- > #+latex_class_options: [t,presentation,bigger] > --- >=20 > I saw an effect on my frame alignment, which told me things were, > indeed, being read. It seems the issue was with using > #+beamer_header_extra. I don't know what that's supposed to be for, > but it isn't picking up the theme option. Actually... in searching for > what it's supposed to be used for, I ran across a mailing list post of > the same problem: > -- http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01011.html >=20 > Indeed, ditching beamer_header_extra for the theme setting and just > using #+latex_header... works. >=20 > Thoughts on fixing this? >=20 >=20 The beamer exporter is searching the original file for #+BEAMER_* stuff, not the setup file (and of course it does not find anything interesting there). The latex exporter seems to find everything in the setup file however, so t= here must be some mechanism for searching the setup file. If so, it should be possible to crib it and copy it into the beamer exporter. But the devil, as= the saying goes, is in the details... Nick