From: James Harkins <jamshark70@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Beamer export with \only overlays - how?
Date: Thu, 10 Oct 2013 01:16:27 +0000 (UTC) [thread overview]
Message-ID: <loom.20131010T031526-201@post.gmane.org> (raw)
In-Reply-To: 20131009072328.GL2006@kuru.dyndns-at-home.com
Suvayu Ali <fatkasuvayu+linux <at> 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
prev parent reply other threads:[~2013-10-10 1:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-08 15:41 Beamer export with \only overlays - how? James Harkins
2013-10-08 17:42 ` Suvayu Ali
2013-10-09 2:28 ` James Harkins
2013-10-09 7:23 ` Suvayu Ali
2013-10-10 1:16 ` James Harkins [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=loom.20131010T031526-201@post.gmane.org \
--to=jamshark70@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).