emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Matt Lundin <mdl@imapmail.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Question about org-beamer overlays
Date: Thu, 10 Mar 2011 13:31:29 +0000	[thread overview]
Message-ID: <87tyfbp0em.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87vczsqfvf.fsf@fastmail.fm> (Matt Lundin's message of "Wed, 09 Mar 2011 13:59:48 -0500")

[-- Attachment #1: Type: text/plain, Size: 3073 bytes --]

Matt Lundin <mdl@imapmail.org> writes:

> I use beamer for presentations and appreciate the fine-grained control
> over effects that it provides. For instance, I can combine overlay
> specifications with includegraphics to mix and match different text and
> images on the same frame.
> \begin{frame}
> \frametitle{A Title}
> \begin{columns}[c]
> \column{2in}
> \begin{itemize}
> \item \emph{Text on first and second slides}
>   \begin{itemize}
>   \item<2-> Text on second slide
>   \item<2-> \textbf<3>{Text on second slide, bold on third slide}
>   \end{itemize}
> \end{itemize}
> \column{3in}
> \includegraphics<1>[height=3in]{image1.jpg} % first slide only
> \includegraphics<2>[height=3in]{image2.jpg} % second slide only
> \includegraphics<3>[height=3in]{image3.jpg} % third slide only
> \end{columns}
> \end{frame}
> Any ideas how I might accomplish similar effects in org-beamer (without
> having too hack up the org file with too much LaTeX code)?

The attached (with three different figures...) will do the job although
it does use latex for graphics statements unfortunately.  It may be
possible to use the ATTR_LATEX feature to bring in the <N>
specifications but I don't know how if so.  I have to change the column
widths to fractions of \textwidth as that is the default.  Again, it may
be possible to specify actual sizes but I don't know how.  I prefer
fractions in any case as I don't have to worry about the actual "size"
then (and so works for posters as well!).

> More generally, I'd be curious to learn how others use org beamer. Is
> its primary purpose to create "quick and dirty" bullet-point
> presentations? I generally find that I have to insert so much LaTeX code
> into the org outline that it defeats the purpose of using org for
> drafting the presentation. So perhaps I'm too fussy. :)

I have just converted a series of lecture notes (30-40 lectures, several
hundred slides) from latex to org and I have kept explicit latex only
for the following:

1. tikz pictures
2. the odd \uncover<N> aspects on some slides (for pedagogical reasons).

Everything else is handled by org directly including transitions in
lists and columns (use BEAMER_envargs).

> Any insights and/or advice would be greatly appreciated.

Start by having latex snippets where you need them until you figure out
how to do things natively in org.  The nice thing about org is that you
can have pretty much as much latex as you want and it works just fine.
I used the babel approach in the attachment but I could have done:


instead.  The nice thing about the babel approach is that you can then
edit the latex in a latex (auctex in my case) specific mode within

Further, just being able to have the other features of org at hand
(outlining, navigation, inline tasks, markup) makes it worth paying the
price of the odd latex code!  Some of this is available in auctex, of
course, but I find org much more natural: it doesn't get in the way of
the content generation, which is what is important after all.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: single slide example --]
[-- Type: text/orgmode, Size: 1508 bytes --]

#+title: Testing Beamer in Org
#+author: Eric S Fraga
#+OPTIONS:   H:5 num:t toc:t \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:nil
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]


#+startup: oddeven
#+startup: fninline

#+COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)

#+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
#+latex_header: \usepackage{tikz}

* Introduction
** A Title
*** left column                                       :BMCOL:B_ignoreheading:
    :BEAMER_col: 0.4
    :BEAMER_env: ignoreheading
    :BEAMER_envargs: C[t]

    - /Text on first and second slides/
      - <2-> Text on second slide
      - <2-> \textbf<3>{Text on second slide, bold on third slide}

*** right column                                      :BMCOL:B_ignoreheading:
    :BEAMER_col: 0.6
    :BEAMER_env: ignoreheading

    #+begin_src latex
\includegraphics<1>[height=3in]{mip.png} % first slide only
\includegraphics<2>[height=3in]{sequence.png} % second slide only
\includegraphics<3>[height=3in]{test.png} % third slide only

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs
: using Org-mode version 7.5 (release_7.5.25.gaaf0b.dirty)

  reply	other threads:[~2011-03-10 13:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-09 18:59 Question about org-beamer overlays Matt Lundin
2011-03-10 13:31 ` Eric S Fraga [this message]
2011-03-12 13:32   ` Matt Lundin
2011-03-13 20:07     ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tyfbp0em.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).