From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: The \only<> overlay in beamer Date: Wed, 29 Sep 2010 11:26:15 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2001281704==" Return-path: Received: from [140.186.70.92] (port=47343 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P10A9-0001b7-BT for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 13:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0zUB-0006lO-GI for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 12:26:28 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:49876) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0zUB-0006lD-8M for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 12:26:27 -0400 Received: by bwz10 with SMTP id 10so922176bwz.0 for ; Wed, 29 Sep 2010 09:26:25 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Rafael Calsaverini , emacs-orgmode@gnu.org --===============2001281704== Content-Type: multipart/alternative; boundary=0016e6dd8bf2a63b4a0491686b1f --0016e6dd8bf2a63b4a0491686b1f Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable >From beamer manual: --- On non-specified slides the \only command simply =93throws its argument awa= y=94 and the argument does not occupy any space. This leads to different heights of the text on the first three slides and on the fourth slide. If the text is centered vertically, this will cause the text to =93wobble=94 a= nd thus \uncover should be used. However, you sometimes wish things to =93really disappear=94 on some slides and then \only is useful. --- Rafael, could you describe exactly what you want to happen? When I use either <1> or \only<1> formats, I see the first block only one slide 1 and the second block only on slide 2. What is it that's not happening for you? Or could you paste the LaTeX equivalent that does work so we can see what it's supposed to do? Thanks, John * Foo ** Slide 1 *** Block1 :B_block: :PROPERTIES: :BEAMER_envargs: <1> :BEAMER_env: block :END: - bla11 - bla12 - bla13 *** Block2 :B_block: :PROPERTIES: :BEAMER_envargs: <2> :BEAMER_env: block :END: - bla21 - bla22 - bla23 On Wed, Sep 29, 2010 at 11:12 AM, Carsten Dominik wrote: > > On Sep 18, 2010, at 8:15 PM, Rafael Calsaverini wrote: > > Hi there. >> >> I'm trying to use the \only<> command to produce a beamer presentation b= ut >> it seems that org-beamer filters out this. I've tried it in many differe= nt >> ways, and didn't get the desired effect. >> >> Particularly, I've tried the obviously wrong thing: >> #+STARTUP: beamer >> #+LaTeX_CLASS: beamer >> #+LaTeX_CLASS_OPTIONS: [smaller, presentation] >> >> * Foo >> ** Slide 1 >> \only<1> { >> *** Block1 :B_block: >> :PROPERTIES: >> :BEAMER_env: block >> :END: >> - bla11 >> - bla12 >> - bla13 >> } >> \only<2>{ >> *** Block2 :B_block: >> :PROPERTIES: >> :BEAMER_env: block >> :END: >> - bla21 >> - bla22 >> - bla23 >> } >> >> Which obviously break-up. And I also tried what I believe would be a nic= e >> syntax for this: >> >> * Foo >> ** Slide 1 >> *** Block1 :B_block: >> :PROPERTIES: >> :BEAMER_envargs: \only<1> >> :BEAMER_env: block >> :END: >> - bla11 >> - bla12 >> - bla13 >> >> *** Block2 :B_block: >> :PROPERTIES: >> :BEAMER_envargs: \only<2> >> :BEAMER_env: block >> :END: >> - bla21 >> - bla22 >> - bla23 >> >> Apparently the parser just removes the "\only" and interprets this as <1= > >> and <2>. The resulting latex is exactly the same as if the "\only" wasn'= t >> there. >> >> Is there a way to use the "\only<>" overlay in a clean way? >> > > What does \only do? > > - Carsten > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0016e6dd8bf2a63b4a0491686b1f Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable >From beamer manual:

---
On non-specified slide= s the \only command simply =93throws its argument away=94 and the argument = does not
occupy any space. This leads to different heights of the text = on the first three slides and on the fourth slide. If
the text is centered vertically, this will cause the text to =93wobble= =94 and thus \uncover should be used. However,
you sometimes wish= things to =93really disappear=94 on some slides and then \only is useful.<= /div>
---

Rafael, could you describe exactly what y= ou want to happen? When I use either <1> or \only<1> formats, I= see the first block only one slide 1 and the second block only on slide 2.= What is it that's not happening for you? Or could you paste the LaTeX = equivalent that does work so we can see what it's supposed to do?


Thanks,
John

* Foo
** Slide 1
*** =A0Block1 =A0 =A0:B_b= lock:
=A0=A0 =A0:PROPERTIES:
=A0=A0 =A0:BEAMER_envargs:= <1>
=A0=A0 =A0:BEAMER_env: block
=A0=A0 =A0:END:
=A0= =A0 =A0- bla11
=A0=A0 =A0- bla12
=A0=A0 =A0- bla13

*** =A0Block2 =A0 =A0 :B_block:
=A0=A0 =A0:P= ROPERTIES:
=A0=A0 =A0:BEAMER_envargs: <2>
=A0=A0 =A0:BEAMER_env: block
=A0=A0 =A0:END:
=A0= =A0 =A0- bla21
=A0=A0 =A0- bla22
=A0=A0 =A0- bla23


On Wed, Sep 29, 2010 at 11:1= 2 AM, Carsten Dominik <carsten.dominik@gmail.com> wrote:

On Sep 18, 2010, at 8:15 PM, Rafael Calsaverini wrote:

Hi there.

I'm trying to use the \only<> command to produce a beamer present= ation but it seems that org-beamer filters out this. I've tried it in m= any different ways, and didn't get the desired effect.

Particularly, I've tried the obviously wrong thing:
#+STARTUP: =A0 =A0 =A0beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [smaller, presentation]

* Foo
** Slide 1
\only<1> {
*** =A0Block1 =A0 =A0 :B_block:
=A0 =A0 :PROPERTIES:
=A0 =A0 :BEAMER_env: block
=A0 =A0 :END:
=A0 =A0 - bla11
=A0 =A0 - bla12
=A0 =A0 - bla13
}
\only<2>{
*** =A0Block2 =A0 =A0 :B_block:
=A0 =A0 :PROPERTIES:
=A0 =A0 :BEAMER_env: block
=A0 =A0 :END:
=A0 =A0 - bla21
=A0 =A0 - bla22
=A0 =A0 - bla23
}

Which obviously break-up. And I also tried what I believe would be a nice s= yntax for this:

* Foo
** Slide 1
*** =A0Block1 =A0 =A0:B_block:
=A0 =A0 :PROPERTIES:
=A0 =A0 :BEAMER_envargs: \only<1>
=A0 =A0 :BEAMER_env: block
=A0 =A0 :END:
=A0 =A0 - bla11
=A0 =A0 - bla12
=A0 =A0 - bla13

*** =A0Block2 =A0 =A0 :B_block:
=A0 =A0 :PROPERTIES:
=A0 =A0 :BEAMER_envargs: \only<2>
=A0 =A0 :BEAMER_env: block
=A0 =A0 :END:
=A0 =A0 - bla21
=A0 =A0 - bla22
=A0 =A0 - bla23

Apparently the parser just removes the "\only" and interprets thi= s as <1> and <2>. The resulting latex is exactly the same as if= the "\only" wasn't there.

Is there a way to use the "\only<>" overlay in a clean way?=

What does \only do?

- Carsten


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--0016e6dd8bf2a63b4a0491686b1f-- --===============2001281704== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2001281704==--