From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Fraga Subject: Re: Exporting a presentation to both slides and handouts? Date: Wed, 25 Apr 2012 18:38:09 +0930 Message-ID: <87zka0kwli.fsf@ucl.ac.uk> References: <580EE13B-CE44-41EF-92FA-52E4EC93D235@polytechnique.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMyD5-00077H-SV for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 05:08:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMyD3-0008Iu-P1 for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 05:08:27 -0400 Received: from va3ehsobe006.messaging.microsoft.com ([216.32.180.16]:33134 helo=va3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMyD3-0008Ia-Kk for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 05:08:25 -0400 In-Reply-To: <580EE13B-CE44-41EF-92FA-52E4EC93D235@polytechnique.org> (Alan Schmitt's message of "Thu, 15 Mar 2012 09:14:00 +0100") 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 Cc: emacs-orgmode Mode 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. I 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={0.5,0.5,0.5}]{structure}\usetheme[secheader]{Boadilla}\usepackage{pgfpages}\pgfpagesuselayout{4 on 1}[a4paper,landscape,border shrink=5mm]} --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. Remembering 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. For my use case, this isn't an issue. I generate the handouts, 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)