From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: latex export and beamer columns Date: Sat, 21 Nov 2009 14:34:18 +0100 Message-ID: <3CB39269-FB18-4155-AF32-00F6B46F8061@gmail.com> References: <876394m49f.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBq6f-0007xE-CD for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 08:34:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBq6Z-0007up-UK for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 08:34:28 -0500 Received: from [199.232.76.173] (port=53481 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBq6Z-0007uc-J4 for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 08:34:23 -0500 Received: from ey-out-1920.google.com ([74.125.78.145]:37088) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBq6Y-0005HZ-Oq for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 08:34:23 -0500 Received: by ey-out-1920.google.com with SMTP id 3so1396670eyh.34 for ; Sat, 21 Nov 2009 05:34:21 -0800 (PST) In-Reply-To: <876394m49f.wl%ucecesf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: org-mode mailing list Hi Eric, this looks very nice! I just tried beamer for the first time, this is very simple now. Maybe I can drop powerpoint, at least for some stuff. I think we need a good beamer tutorial on Worg, including this column stuff, and some text about image treatment. Any volunteers? Anything missing in Org that we should implement to support this better? - Carsten On Nov 21, 2009, at 1:49 PM, Eric S Fraga wrote: > Recently, in September, there was a discussion about exporting org > files to latex using the beamer class and generating slides with > multiple columns: > > http://article.gmane.org/gmane.emacs.orgmode/17546 > > No solution was presented at that time but I think I've managed to > create one that is quite reasonable. I define a beamer entry in > org-export-latex-classes which has the following definitions for the > different headings in an org-mode file: > > > --8<---------------cut here---------------start------------->8--- > ("\\section{%s}" . "\\section*{%s}") > ("\\begin{frame}\\frametitle{%s}" "\\end{frame}" > "\\begin{frame}\\frametitle{%s}" "\\end{frame}") > ("\\begin{columns} \% %s" "\\end{columns}" > "\\begin{columns} \% %s" "\\end{columns}") > ("\\begin{column}{%s\\textwidth}" "\\end{column}" > "\\begin{column}{%s\\textwidth}" "\\end{column}") > --8<---------------cut here---------------end--------------->8--- > > > Then, if I have a 3rd level heading (whose actual text is ignored), > multiple columns mode is entered and the level 4 headings indicate the > widths (relative to \textwidth although obviously one could generalise > this) of each subsequent column. > > *Note*: for this to work, you have to specify H:4 in the document > OPTIONS or else the 4th level headings are turned into items in an > itemized list. > > So, for instance, this will generate a slide with two columns of text > (noting that I use odd levels only for my headings): > > > --8<---------------cut here---------------start------------->8--- > # -*- coding: utf-8; -*- > #+TITLE: Beamer column test > #+AUTHOR: Eric > #+OPTIONS: H:4 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t > #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in- > toc > #+LaTeX_CLASS: beamer > > * Main heading > *** An interesting slide > ***** columns (this text is ignored) > ******* 0.3 > - Some text on the left of the slide > - make sure we have at least two bullet points > - this is a narrow column > ******* 0.7 > - text on the right side of the slide > - and more > - and even more > - and this is a much wider column > --8<---------------cut here---------------end--------------->8--- > > > I can now create the slides for presentations and lectures completely > within org-mode so I'm a very happy camper! > > eric > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten