From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Beamer specific setupfile? Date: Mon, 12 Mar 2012 17:48:48 -0400 Message-ID: <5505.1331588928@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7D7F-0002Ev-8U for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 17:49:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7D6r-0000vX-MW for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 17:49:16 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:14275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7D6r-0000r8-FJ for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 17:48:53 -0400 In-Reply-To: Message from John Hendy of "Mon, 12 Mar 2012 16:13:25 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 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=true,titleline=true,titlepagelogo=../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: John Henderson > --- > > I tried inserting the above into a file called =beamer-setup.org= 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' | This line defines a file that holds more in-buffer setup. | Normally this is entirely ignored. Only when the buffer is parsed | for option-setting lines (i.e. when starting Org mode for a file, | when pressing `C-c C-c' in a settings line, or when exporting), | then the contents of this file are parsed as if they had been | included in the buffer. In particular, the file can be any other | Org mode file with internal setup. You can visit the file the | cursor 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. Nick