TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a slide with an animation with autoplay on the top and two graphs at the bottom. The graphs appear in two stages. At the moment, the animation restart when I go to the second step, how I can prevent that? To be clearer, I would like the animation to stay on its last frame (instead of restarting) as I advance to the second part of the slide.

The code so far:

\frametitle{Example 1}


} %%%
share|improve this question
I think this is in principle very difficult (each slide is a page in its own). However, I guess you can emulate it by making the other pictures to an animation (albeit, you have to either time perfectly or press them to run them). – zeroth Mar 19 '13 at 11:31
Maybe you could put your animation on a \only<1>{} environment and put a picture of the same size (eg: the last frame of the animation) in a \only<2>{} to replace the animation... Or even better perhaps, put the animation again in a \only<2>{} but without autoplay – Lionel MANSUY Mar 19 '13 at 12:20
I tried to use the option 'startat' in \includemovielike this, but it was unsuccessful: \only<1>{\includemovie[autoplay,mouse]{10em}{7em}{Pics/bar_cubic.avi}} \only<2>{\includemovie[startat=time:6,autoplay,mouse]{10em}{7em}{Pics/bar_cubic‌​.avi}} – Julot Mar 20 '13 at 10:21

Short answer: you can't. (At least not in any simple way: see below.)

Each slide generated by beamer (or any other route to a PDF presentation from TeX) is a separate page in the PDF file. As such, the animations on different slides are separate as far as the viewer application is concerned. Thus they will always restart when you advance a page.

I guess there are a couple of possible 'get outs'. First, modern PDFs support 'optional content groups (OCGs) when allow variability of the material on a page. However, beamer doesn't generate those and indeed I'm not sure they would work for the case here. The second possible get out is to use JavaScript to tie things together. This is viewer-dependent, again not done by beamer and has a reputation for being not 100% reliable. Certainly neither of these approaches are available 'built in' to beamer (you'd have to code yourself) and I'm not even sure either would work!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.