emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Nicolas Goaziou <n.goaziou@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 07:22:20 -0600	[thread overview]
Message-ID: <87ehe1mgez.fsf@gmail.com> (raw)
In-Reply-To: 87sj2hbtea.fsf@gmail.com

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> 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:
>

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

      parent reply	other threads:[~2013-04-23 15:10 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
2013-04-23  8:12   ` Suvayu Ali
2013-04-23 13:22   ` Eric Schulte [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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