From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to use overprint in Beamer export Date: Tue, 23 Apr 2013 09:25:33 +0200 Message-ID: <87sj2hbtea.fsf@gmail.com> References: <874neyyp32.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUXbe-0007j2-Ix for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 03:25:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUXbd-0004Y1-46 for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 03:25:38 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:34803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUXbc-0004Xx-Tb for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 03:25:37 -0400 Received: by mail-we0-f173.google.com with SMTP id o7so261690wea.4 for ; Tue, 23 Apr 2013 00:25:35 -0700 (PDT) In-Reply-To: <874neyyp32.fsf@gmail.com> (Eric Schulte's message of "Mon, 22 Apr 2013 20:10:09 -0600") 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: Eric Schulte Cc: Org Mode Mailing List 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: #+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, -- Nicolas Goaziou