From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: How to use overprint in Beamer export Date: Tue, 23 Apr 2013 07:22:20 -0600 Message-ID: <87ehe1mgez.fsf@gmail.com> References: <874neyyp32.fsf@gmail.com> <87sj2hbtea.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUerS-0001iJ-1S for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 11:10:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUerQ-0006NN-JW for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 11:10:25 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:41462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUerQ-0006NG-CI for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 11:10:24 -0400 Received: by mail-pd0-f171.google.com with SMTP id t12so498072pdi.2 for ; Tue, 23 Apr 2013 08:10:23 -0700 (PDT) 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: Nicolas Goaziou Cc: Org Mode Mailing List Nicolas Goaziou writes: > Hello, > > Eric Schulte 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: > Thanks for this. It does indeed do exactly what I want. Cheers, > > #+begin_src org > #+BIND: org-beamer-environments-extra (("overprint" "O" "\\begin{overprint}%o" "\\end{overprint}")) > #+LANGUAGE: en > #+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 > :PROPERTIES: > :beamer_env: overprint > :END: > > #+beamer: \onslide<1> > *** Foo > > A picture of a "foo". > > *** onslide :B_ignoreheading: > :PROPERTIES: > :BEAMER_env: ignoreheading > :END: > > #+beamer: \onslide<2> > > *** Bar > > Some text about "bar". > > *** onslide :B_ignoreheading: > :PROPERTIES: > :BEAMER_env: ignoreheading > :END: > > #+beamer: \onslide<3> > > *** Baz > > Content relevant only to "baz". > #+end_src > > > Regards, -- Eric Schulte http://cs.unm.edu/~eschulte