Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to put an animation into a slideshow I am making using the beamer package for LaTex. Ideally I would like it to loop and play again and again like a GIF, but anything similar would work as well. I used MatLab to generate the figures (right now I just have a sequence of pictures, but I should be able to put it into any format necessary). I know there is an animator function in beamer, but I've no idea how to really use it. I've also seen some places that using PNG files can accomplish the same result as GIF's, but once again I'm not sure how to do this.

I found a similar question on this site, but they seem to have LaTex generating the figures??? Besides when I copied the code into my editor it didn't run. I really like the format of the animation in this example, but no idea how to adapt it to work for me. Here is the link to the page: Similar Question with Answer.

Any advice would be greatly appreciated.

share|improve this question
    
Welcome to TeX.sx! –  Kurt Feb 22 '13 at 1:58
add comment

1 Answer

up vote 6 down vote accepted

Use the animate package. Its \animategraphics command will take your external images and put them in an animation. So, assuming that you have images image1.jpg, ... image6.jpg (or in any other format recognized by LaTeX), write:

\animategraphics[controls]{1}{image}{1}{6}

(Btw, this works also in a "normal" document, i.e. in a non-beamer class.)

share|improve this answer
    
Thanks so much it works great. Quick question, is there a way to get the controls like the one in the example and/or tell it how many frames (pictures) to do per second. I know I'm being picky now, but I thought I'd ask. –  Logan Feb 22 '13 at 2:30
    
Sure: the controls are already present in whta I wrote (optional arg controls). The first mandatory arg controls the framerate (above, 1 (Hz)). And, it's all the manual! ;-) –  Sašo Živanović Feb 22 '13 at 2:33
    
Oh, I took the word controls out to change the size. Oops XD I didn't know that there was a manual. Thanks you so much!!! This is going to MAKE my presentation. –  Logan Feb 22 '13 at 2:38
    
@Logan: You asked for playing in a loop: Just add ,loop to the option list. –  AlexG Feb 22 '13 at 8:14
1  
This currently isn't working for me. Is this feature widely implemented by PDF readers, or could that be my problem? –  MHaaZ Jun 9 '13 at 18:34
show 1 more comment

Your Answer

 
discard

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.