[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] latex export and beamer columns

From: Thomas S. Dye
Subject: Re: [Orgmode] latex export and beamer columns
Date: Sat, 21 Nov 2009 06:33:52 -1000

On Nov 21, 2009, at 2:49 AM, 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:


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!


Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

Aloha Eric,

Thanks very much for this approach to creating beamer slides with columns. The earlier discussion didn't come up with a solution at least partly because I was clinging to the notion that low-level headings, below the levels specified by the H option, should be used for itemized lists. Once this mistaken assumption is abandoned, your solution becomes clear.


All the best,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]