From: Matt Lundin <mdl@imapmail.org>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Question about org-beamer overlays
Date: Sat, 12 Mar 2011 08:32:08 -0500 [thread overview]
Message-ID: <87fwqsqxbb.fsf@fastmail.fm> (raw)
In-Reply-To: <87tyfbp0em.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 10 Mar 2011 13:31:29 +0000")
Hi Eric,
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> Matt Lundin <mdl@imapmail.org> writes:
>> Any ideas how I might accomplish similar effects in org-beamer (without
>> having too hack up the org file with too much LaTeX code)?
>
> The attached (with three different figures...) will do the job although
> it does use latex for graphics statements unfortunately. It may be
> possible to use the ATTR_LATEX feature to bring in the <N>
> specifications but I don't know how if so. I have to change the column
> widths to fractions of \textwidth as that is the default. Again, it may
> be possible to specify actual sizes but I don't know how. I prefer
> fractions in any case as I don't have to worry about the actual "size"
> then (and so works for posters as well!).
>
Thanks so much for your helpful examples. There is clearly a lot more to
learn about org-beamer!
> Start by having latex snippets where you need them until you figure out
> how to do things natively in org. The nice thing about org is that you
> can have pretty much as much latex as you want and it works just fine.
> I used the babel approach in the attachment but I could have done:
> *** right column :BMCOL:B_ignoreheading:
> :PROPERTIES:
> :BEAMER_col: 0.6
> :BEAMER_env: ignoreheading
> :END:
>
>
> #+begin_src latex
> \includegraphics<1>[height=3in]{mip.png} % first slide only
> \includegraphics<2>[height=3in]{sequence.png} % second slide only
> \includegraphics<3>[height=3in]{test.png} % third slide only
> #+end_src
I discovered one org-mode solution here. I can use
org-beamer-environments-extra to wrap an only macro around an image
link.
--8<---------------cut here---------------start------------->8---
(add-to-list 'org-beamer-environments-extra
'("only" "o" "\\only%a{%h%x" "}"))
--8<---------------cut here---------------end--------------->8---
A sequence of images in the same column can thus be accomplished with
the following:
--8<---------------cut here---------------start------------->8---
*** right column :BMCOL:B_ignoreheading:
:PROPERTIES:
:BEAMER_col: 0.6
:BEAMER_env: ignoreheading
:END:
**** [[file:image1.png]] :B_only:
:PROPERTIES:
:BEAMER_envargs: <1>
:BEAMER_env: only
:END:
**** [[file:image2.jpg]] :B_only:
:PROPERTIES:
:BEAMER_envargs: <2>
:BEAMER_env: only
:END:
**** [[file:image3.png]] :B_only:
:PROPERTIES:
:BEAMER_envargs: <3>
:BEAMER_env: only
:END:
--8<---------------cut here---------------end--------------->8---
Thanks again!
Matt
next prev parent reply other threads:[~2011-03-12 13:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 18:59 Question about org-beamer overlays Matt Lundin
2011-03-10 13:31 ` Eric S Fraga
2011-03-12 13:32 ` Matt Lundin [this message]
2011-03-13 20:07 ` Eric S Fraga
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=87fwqsqxbb.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=e.fraga@ucl.ac.uk \
--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).