From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: Exporting a presentation to both slides and handouts? Date: Wed, 25 Apr 2012 23:50:12 +0900 Message-ID: References: <580EE13B-CE44-41EF-92FA-52E4EC93D235@polytechnique.org> <87zka0kwli.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN3Xx-0007Gj-O9 for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 10:50:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN3Xr-0000tn-7W for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 10:50:21 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:46183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN3Xr-0000ss-0x for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 10:50:15 -0400 Received: by vcbfy7 with SMTP id fy7so140489vcb.0 for ; Wed, 25 Apr 2012 07:50:12 -0700 (PDT) In-Reply-To: <87zka0kwli.fsf@ucl.ac.uk> 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: Alan Schmitt , emacs-orgmode Mode Hi, I think most flexible would be to use tags create tags like "handout" and "presentation" Tag all blocks accordingly (handout, presentation or both) Set the export tag to handout or resp. to presentation. Since blocks in slides are represented by third level org headlines one could easily remove blocks for either handouts or presentation. Other blocks could be tagged "lecture-notes" giving guidance to the present= er I did not try this but it should work Torsten On 25 April 2012 18:08, Eric Fraga wrote: > Alan Schmitt writes: > >> Hello, >> >> I'm finishing a presentation with org-mode which is exported as beamer >> slides. I would like to also export it as a handouts, which basically >> means changing a couple lines in the preamble. Is there a way to do it >> from the org-mode file, or do I need to edit the generated LaTeX >> manually? >> >> (If the solution is to have some lines that specify the options and the = name of the exported LaTeX file commented out, it would work fine with me.) >> >> Thanks, >> >> Alan > > My solution is akin to yours except that I alter the org file > instead. =A0I have the following lines in my org file: > > --8<---------------cut here---------------start------------->8--- > ##+LaTeX_CLASS_OPTIONS: [bigger] > #+LaTeX_CLASS_OPTIONS: [handout] > #+latex_header: \mode{\usetheme{progressbar}} > #+latex_header: \mode{\usecolortheme[rgb=3D{0.5,0.5,0.5}]{struct= ure}\usetheme[secheader]{Boadilla}\usepackage{pgfpages}\pgfpagesuselayout{4= on 1}[a4paper,landscape,border shrink=3D5mm]} > --8<---------------cut here---------------end--------------->8--- > > and all I do is delete the extra # on the first line and add one to the > second line to switch from generating handouts to generating my > slides. =A0Remembering to hit C-c C-c, of course, before doing the > export. > > I use very different themes for handouts (e.g. grey colour theme) and > for slides but those lines need not change. > > Of course, by default, the export generates the same file name in both > cases. =A0For my use case, this isn't an issue. =A0I generate the handout= s, > copy the resulting PDF file to the web server and then generate the > slides which I will actually present. > > HTH, > eric > > > -- > : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1 > : using Org-mode version 7.8.06 (release_7.8.06.181.g67694.dirty) > >