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 want to animate different png-files into one graphic in LaTeX. I use:

\documentclass{beamer}
\usepackage{graphicx}
\usepackage{animate}

\begin{document}
\frame{
\frametitle{Monte Carlo Simulation - 22 trading days, 1000 simulations}
\vspace{-0.5cm}
\begin{center}
\animategraphics[scale=0.5,autoplay]{5}{3d}{211}{1}
\end{center}
}

\end{document}

So the decreasing from 211 to 210 and so on works, but the problem is, that LaTeX e.g. searches for the file "3d099":

! Package animate Error: Neither of the files
(animate)                `3d099.pdf',
(animate)                `3d099.mps',
(animate)                `3d099.png',
(animate)                `3d099.jpg',
(animate)                `3d099.jpeg',
(animate)                `3d099.jbig2',
(animate)                `3d099.jb2',
(animate)                `3d099.jp2',
(animate)                `3d099.j2k' or
(animate)                `3d099.jpx',
(animate)                could be found.
(animate)                Wrong file type? Mis-spelled file name?.

See the animate package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.865 }

? 

But the file name is "3d99.png", so what do I have to change, that LaTeX does it correct?

share|improve this question

closed as too localized by zeroth, Stephen, Qrrbrbirlbel, Werner, cyberSingularity Jan 6 '13 at 13:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
I strongly recommend to use zero-padded-digit filenames when dealing with animations. That is, if you have 11 files, names should be base00, base01, ... base10. Besides from solving this particular case, it will simplify most things (as encoding a movie for instance). –  guillem Dec 5 '12 at 11:38
2  
+1 It seems you detected a bug. Please use zero-padded file numbers in case of down-counting, for now. Will be fixed asap. –  AlexG Dec 6 '12 at 8:15
3  
Fixed in today's version [2012/12/06]. –  AlexG Dec 6 '12 at 13:05
    
See How to output a counter with leading zeros? –  Werner Dec 27 '12 at 19:05

Browse other questions tagged or ask your own question.