* Overlay in beamer?
@ 2014-04-30 12:27 Giuseppe Lipari
2014-04-30 15:10 ` Eric S Fraga
0 siblings, 1 reply; 5+ messages in thread
From: Giuseppe Lipari @ 2014-04-30 12:27 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2290 bytes --]
Dear list,
I am having some trouble in using the beamer export.
First of all, I have problems in finding documentation on the exporter
on-line. Is there an up-to-date manual of this exporter, and the list of
options? By searching for a solution to my problem, I found many different
notation around the web (the wiki, stackoverflow, etc.) but I could not
find a solution to my very simple problem.
I have three images to show in my slide, one after the other (or one on top
of the other).
In Latex beamer, I can write something like:
--------- begin-snippet-------------
\begin{figure}
\begin{center}
\includegraphics<1>[width=.7\textwidth]{figure1}
\includegraphics<2>[width=.7\textwidth]{figure2}
\includegraphics<3->[width=.7\textwidth]{figure3}
\end{center}
\end{figure}
--------- end-snippet-------------
and it works. How do I do the same in org-beamer?
I tried several options, for example this one:
--------- begin-snippet-------------
#+ATTR_BEAMER: :overlay <1>
[[ file:figure1 ]]
#+ATTR_BEAMER: :overlay <2>
[[ file:figure2 ]]
#+ATTR_BEAMER: :overlay <3>
[[ file:figure3 ]]
--------- end-snippet-------------
or
--------- begin-snippet-------------
*** :B_ignoreheading:
:PROPERTIES:
:BEAMER_env: ignoreheading
:BEAMER_act: <+>
:END:
[[file:figure1]]
[[file:figure2]]
[[file:figure3]]
--------- end-snippet-------------
and several other combinations of blocks, properties and attributes, but
the generated latex output is always more or less the same:
--------- begin-snippet-------------
\includegraphics[width=.9\linewidth]{figure1}
\includegraphics[width=.9\linewidth]{figure2}
\includegraphics[width=.9\linewidth]{figure3}
--------- end-snippet-------------
Can someone help me to understand how to put overlays on figures?
I am using org-mode version 8.2.5h (pulled from the git repository about
one month ago I guess) on Emacs 24.3.1
Thanks in advance,
Giuseppe Lipari
--
Giuseppe Lipari
RETIS Lab, CEIIC
Scuola Superiore Sant'Anna
via Moruzzi, 1
56127 Pisa
tel: 050 882030
fax: 050 882003
web: http://feanor.sssup.it/~lipari/
blogs: http://scacciamennule.blogspot.com
http://okpanico,wordpress.com
http://algoland.wordpress.com
[-- Attachment #2: Type: text/html, Size: 3290 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Overlay in beamer?
2014-04-30 12:27 Overlay in beamer? Giuseppe Lipari
@ 2014-04-30 15:10 ` Eric S Fraga
2014-04-30 16:31 ` Giuseppe Lipari
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2014-04-30 15:10 UTC (permalink / raw)
To: Giuseppe Lipari; +Cc: emacs-orgmode
[...]
> I tried several options, for example this one:
>
> --------- begin-snippet-------------
>
> #+ATTR_BEAMER: :overlay <1>
> [[ file:figure1 ]]
[...]
The following works for me:
#+beamer: \only<1>{
[[file:figure1.png]]
#+beamer: }\only<2>{
[[file:figure2.png]]
#+beamer: }\only<3->{
[[file:figures3.png]]
#+beamer: }
Not pretty but...
HTH,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Overlay in beamer?
2014-04-30 15:10 ` Eric S Fraga
@ 2014-04-30 16:31 ` Giuseppe Lipari
2014-04-30 17:00 ` Eric S Fraga
0 siblings, 1 reply; 5+ messages in thread
From: Giuseppe Lipari @ 2014-04-30 16:31 UTC (permalink / raw)
To: Giuseppe Lipari, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]
Dear Eric,
thank you for your very fast answer!
I solved by using directly latex code, but I will also consider your
solution.
Since overlays are very much used in beamer, I was just wondering if it
would be easy (or even desirable) to add one more property to ATTR_LATEX
(or ATTR_BEAMER), so to specify overlays for figures ... something like
#+ATTR_BEAMER: :overlay <1->
(Was it available before? I just found this old thread:
http://stackoverflow.com/questions/6974560/how-do-i-use-overlay-specifications-for-lists-in-org-modes-beamer-export-featur
)
Thanks again,
Giuseppe Lipari
2014-04-30 17:10 GMT+02:00 Eric S Fraga <e.fraga@ucl.ac.uk>:
>
> [...]
>
> > I tried several options, for example this one:
> >
> > --------- begin-snippet-------------
> >
> > #+ATTR_BEAMER: :overlay <1>
> > [[ file:figure1 ]]
>
> [...]
>
> The following works for me:
>
> #+beamer: \only<1>{
> [[file:figure1.png]]
> #+beamer: }\only<2>{
> [[file:figure2.png]]
> #+beamer: }\only<3->{
> [[file:figures3.png]]
> #+beamer: }
>
> Not pretty but...
> HTH,
> eric
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
>
--
Giuseppe Lipari
RETIS Lab, CEIIC
Scuola Superiore Sant'Anna
via Moruzzi, 1
56127 Pisa
tel: 050 882030
fax: 050 882003
web: http://feanor.sssup.it/~lipari/
blogs: http://scacciamennule.blogspot.com
http://okpanico,wordpress.com
http://algoland.wordpress.com
[-- Attachment #2: Type: text/html, Size: 2545 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Overlay in beamer?
2014-04-30 16:31 ` Giuseppe Lipari
@ 2014-04-30 17:00 ` Eric S Fraga
2014-05-07 9:09 ` Suvayu Ali
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2014-04-30 17:00 UTC (permalink / raw)
To: Giuseppe Lipari; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
On Wednesday, 30 Apr 2014 at 18:31, Giuseppe Lipari wrote:
> Since overlays are very much used in beamer, I was just wondering if it
> would be easy (or even desirable) to add one more property to ATTR_LATEX
> (or ATTR_BEAMER), so to specify overlays for figures ... something like
>
There is the BEAMER_ACT property that can be used to apply overlay
information on blocks but I don't think it's possible on individual
figures. Of course, you could put each figure in a separate block. The
following/attached will match what you had originally.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: x.org --]
[-- Type: text/x-org, Size: 240 bytes --]
#+options: H:1
* The slide
** figure 1
:PROPERTIES:
:beamer_act: <1>
:END:
[[file:chromosome.png]]
** figure 2
:PROPERTIES:
:beamer_act: <2>
:END:
[[file:diagram.png]]
** figure 3
:PROPERTIES:
:beamer_act: <3->
:END:
[[file:equation1.png]]
[-- Attachment #3: Type: text/plain, Size: 198 bytes --]
What may not be easy or possible is to use the \only directive, which is
what I used in my previous response to you.
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Overlay in beamer?
2014-04-30 17:00 ` Eric S Fraga
@ 2014-05-07 9:09 ` Suvayu Ali
0 siblings, 0 replies; 5+ messages in thread
From: Suvayu Ali @ 2014-05-07 9:09 UTC (permalink / raw)
To: emacs-orgmode
Hi Eric,
On Wed, Apr 30, 2014 at 06:00:53PM +0100, Eric S Fraga wrote:
>
> What may not be easy or possible is to use the \only directive, which is
> what I used in my previous response to you.
You can always use the only environment.
<https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L215>
That said, I think overlays with only is not as smooth as with simple
overlay specifications to regular environments or macros like
\includegraphics, \item, etc.
As for an :overlay specification, I believe it is already supported but
only for lists (ox-beamer.el:725). I would love to have that for images
too!
Cheers,
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-05-07 9:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30 12:27 Overlay in beamer? Giuseppe Lipari
2014-04-30 15:10 ` Eric S Fraga
2014-04-30 16:31 ` Giuseppe Lipari
2014-04-30 17:00 ` Eric S Fraga
2014-05-07 9:09 ` Suvayu Ali
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.