[Tex/LaTex] Putting animations into latex beamer presentation. Use png, gif

animationsbeamergif

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.

Best Answer

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.)

Related Question