emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: How to use overprint in Beamer export
Date: Tue, 23 Apr 2013 09:25:33 +0200	[thread overview]
Message-ID: <87sj2hbtea.fsf@gmail.com> (raw)
In-Reply-To: <874neyyp32.fsf@gmail.com> (Eric Schulte's message of "Mon, 22 Apr 2013 20:10:09 -0600")


Eric Schulte <schulte.eric@gmail.com> writes:

> I'd like to enclose a series of blocks which replace each other in the
> Beamer overprint environment.
> Here's the LateX I'd like to produce.
>     % latex
>     \begin{frame}[fragile]{The Things}
>     \begin{block}{Things}
>       \begin{description}[<+->]
>       \item[foo] the first thing I want to talk about
>       \item[bar] this is the second, follows the first
>       \item[baz] third and final
>       \end{description}
>     \end{block}
>     \begin{overprint}
>       \onslide<1>
>       \begin{block}{Foo}
>         A picture of a ``foo''.
>       \end{block}
>       \onslide<2>
>       \begin{block}{Bar}
>         Some text about ``bar''.
>       \end{block}
>       \onslide<3>
>       \begin{block}{Baz}
>         Content relevant only to ``baz''.
>       \end{block}
>     \end{overprint}
>     \end{frame}

As pointed out by Suvayu Ali, you can define a new "overprint"
environment, but it won't provide the "\onslide<...>" macros. You'll
have to rely on "#+beamer: \onslide<...>" keywords.

> I see no way to generate this from Org-mode given the folding behavior
> of Org-mode outlines.  Namely the fact that there is no way to *close* a
> heading.

In general, you close a headline with another headline (i.e. a block in
Beamer jargon). You can also close a block with an "ignoreheading"
headline. That's how columns work.

Here is an example:

#+begin_src org
#+BIND: org-beamer-environments-extra (("overprint" "O" "\\begin{overprint}%o" "\\end{overprint}"))
#+OPTIONS: H:1 ':t

* The Things

** Things

   #+attr_beamer: :overlay +-
   - foo :: the first thing I want to talk about
   - bar :: this is the second, follows the first
   - baz :: third and final

** Overprint
   :beamer_env: overprint

   #+beamer: \onslide<1>
*** Foo

    A picture of a "foo".

*** onslide                                                      :B_ignoreheading:
    :BEAMER_env: ignoreheading

    #+beamer: \onslide<2>

*** Bar

    Some text about "bar".

*** onslide                                                      :B_ignoreheading:
    :BEAMER_env: ignoreheading

    #+beamer: \onslide<3>

*** Baz

    Content relevant only to "baz".


Nicolas Goaziou

  parent reply	other threads:[~2013-04-23  7:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23  2:10 How to use overprint in Beamer export Eric Schulte
2013-04-23  6:26 ` Suvayu Ali
2013-04-23 13:21   ` Eric Schulte
2013-04-23  7:25 ` Nicolas Goaziou [this message]
2013-04-23  8:12   ` Suvayu Ali
2013-04-23 13:22   ` Eric Schulte

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=87sj2hbtea.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \


* 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).