I am new to LaTeX. I am trying to put a GIF into my LaTeX presentation.
I followed @samcarter guide here.
I have 23 pictures so I changed something and tried this:
\transduration<0-23>{0}
\multiinclude[<+->][format=png, graphics={width=\textwidth}]{something}
But I always get this warning:
LaTeX Warning: File `something-0.png' not found on input line 132
/LaTeX_Vorlage_Presentations/.example.tex.
swp:132: Unable to load picture or PDF file 'something-0.png'.
The something.pngs are in the same file folder as the LaTeX stuff too.
Best Answer
Here is the procedure on GNU/Linux. I took the
gif
image from this answer of mine.First you need to burst the
gif
into single frames. I use the ImageMagick toolconvert
for this.This will create the files
frame-0.png
throughframe-36.png
in the subdirectorygif/
. To include this in abeamer
presentation I use theanimate
package. It offers the command\animategraphics
to conatenate single images to an animation. The syntax isIn our case, the path prefix is
gif/frame-
. The start frame is 0, the last frame is 36. A frame rate of 12 is empirically chosen, since it looks best. The image is too large for the slide, so we scale it down usingwidth=\textwidth
. Here is the full example.N.B.: This is known to work with Adobe Reader, PDF-XChange, and Foxit. (Thanks @AlexG)