[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Re: Question about org-beamer overlays
From: |
Matt Lundin |
Subject: |
[O] Re: Question about org-beamer overlays |
Date: |
Sat, 12 Mar 2011 08:32:08 -0500 |
User-agent: |
Gnus/5.110014 (No Gnus v0.14) Emacs/23.3 (gnu/linux) |
Hi Eric,
Eric S Fraga <address@hidden> writes:
> Matt Lundin <address@hidden> 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