From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Beamer specific setupfile? Date: Mon, 12 Mar 2012 17:09:43 -0500 Message-ID: References: <5505.1331588928@alphaville> 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]:52448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7DR6-0008C5-9Q for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 18:09:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7DR4-00069G-5f for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 18:09:47 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:64342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7DR3-000694-SM for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 18:09:46 -0400 Received: by bkwq16 with SMTP id q16so3755969bkw.0 for ; Mon, 12 Mar 2012 15:09:43 -0700 (PDT) In-Reply-To: <5505.1331588928@alphaville> 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: nicholas.dokos@hp.com Cc: emacs-orgmode 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 an= d >> 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-buffer = setup. > | =C2=A0 =C2=A0 =C2=A0Normally this is entirely ignored. =C2=A0Only when = the buffer is parsed > | =C2=A0 =C2=A0 =C2=A0for option-setting lines (i.e. when starting Org mo= de for a file, > | =C2=A0 =C2=A0 =C2=A0when pressing `C-c C-c' in a settings line, or when= exporting), > | =C2=A0 =C2=A0 =C2=A0then the contents of this file are parsed as if the= y had been > | =C2=A0 =C2=A0 =C2=A0included in the buffer. =C2=A0In particular, the fi= le can be any other > | =C2=A0 =C2=A0 =C2=A0Org mode file with internal setup. =C2=A0You can vi= sit 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. 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] --- 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 Indeed, ditching beamer_header_extra for the theme setting and just using #+latex_header... works. Thoughts on fixing this? John > > Nick