From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: Beamer export with \only overlays - how? Date: Thu, 10 Oct 2013 01:16:27 +0000 (UTC) Message-ID: References: <406f2400-303e-4b20-8009-c5e443834845@dewdrop-world.net> <20131008174243.GI2006@kuru.dyndns-at-home.com> <20131009072328.GL2006@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU4s6-0004ro-Dg for emacs-orgmode@gnu.org; Wed, 09 Oct 2013 21:17:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VU4s0-0000zn-Dp for emacs-orgmode@gnu.org; Wed, 09 Oct 2013 21:16:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:45356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU4s0-0000zd-46 for emacs-orgmode@gnu.org; Wed, 09 Oct 2013 21:16:52 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VU4rv-0002gh-K6 for emacs-orgmode@gnu.org; Thu, 10 Oct 2013 03:16:48 +0200 Received: from 171.1.136.219.broad.gz.gd.dynamic.163data.com.cn ([171.1.136.219.broad.gz.gd.dynamic.163data.com.cn]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Oct 2013 03:16:47 +0200 Received: from jamshark70 by 171.1.136.219.broad.gz.gd.dynamic.163data.com.cn with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Oct 2013 03:16:47 +0200 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: emacs-orgmode@gnu.org Suvayu Ali gmail.com> writes: > Look a bit more carefully ;). The following paragraph has an example > suggesting the onlyenv environment. As far as I understand, > environments are prefered over commands with arguments or macros when > translating headlines. You can nest your block in such an environment. > I realise this is a little less flexible than \only{}, but it seems to > work. I have not tried any of this personally in a long time though. Indeed, this does the job. Thanks for the extra pointer. For future readers, now I have this in my .emacs: (add-to-list 'org-beamer-environments-extra '("onlyenv" "O" "\\begin{onlyenv}%a" "\\end{onlyenv}")) And then I can export: ** Frame (beamer_act, not quite right) *** The problem on this frame I want Block 1 and Block 2 to occupy the same space on successive slides. *** OnlyEnv 1 :B_onlyenv: :PROPERTIES: :BEAMER_env: onlyenv :BEAMER_ACT: <1> :END: **** Block 1 Text *** OnlyEnv 2 :B_onlyenv: :PROPERTIES: :BEAMER_env: onlyenv :BEAMER_ACT: <2> :END: **** Block 2 Text 2 --> \begin{frame}[label=sec-1-1]{Frame (beamer$_{\text{act}}$, not quite right)} \begin{block}{The problem on this frame} I want Block 1 and Block 2 to occupy the same space on successive slides. \end{block} \begin{onlyenv}<1> \begin{block}{Block 1} Text \end{block} \end{onlyenv} \begin{onlyenv}<2> \begin{block}{Block 2} Text 2 \end{block} \end{onlyenv} \end{frame} ~~~ I think I overlooked this in the manual because the overlay section is not organized around (what I think are) the most important user questions: - Which overlays does org beamer export support? - How to use them? Instead, "onlyenv" appears in a paragraph whose topic sentence is "You can add your own environments by..." In other words, the information is "there," but organized in a way that would make your middle school English teacher break out the red pen. I'll add a TODO for myself to rewrite this section. I don't know when I can get to it, though. ~~~ Why is onlyenv not supported out of the box? hjh