Animations in LaTeX now easy

One of the main things that PowerPoint used to have up on presentations prepared by pdflatex were animations. It turns out this is easy to do now if you use acroread to display your slides!

We need the animate package.

As an example, we'll build an example starting from Bill Casselman's rotating Gamma in eps format.

First, we turn this into a pdf file, using epstopdf by calling

epstopdf c3d.eps

Conversion from eps to pdf is tricky because many programs get the bounding box wrong. This one seems to work.

The following LaTeX file now does the trick (let's call the file gamma.tex)


    \frametitle{Bill's character rotations}
        % Set frame rate to 20 frames/sec
        % We use frames 1 through 71. The file really has 72 frames, but the last is
        % identical to the first, which causes a hiccup in the looped animation.
        % See the animate manual for further options. 

After making sure we have animate installed, we run

pdflatex gamma.tex

and the resulting file gamma.pdf produces a nice animation when viewed with acroread.

days9/PDFLaTeXAnimations (last edited 2008-11-14 13:41:50 by localhost)