3

I am using the animate package to make some nice animations from several pdfs created in R. I have 3 animations in my beamer presentation, but now I'm trying to insert the forth and I get the error:

Missing $ inserted \end{frame}.

If I replace such new animation with other it works. The code I'm using is

\begin{frame}{Deaths 1997-2013}
  \centerline{\animategraphics[controls,buttonsize=0.3cm,width=7.5cm]{5}{"AP_inc_"}{1997}{2013}}
\end{frame}

and just with this set of pdfs the error appears. Can somebody help me.

  • 3
    Just a guess AP_inc_ looks suspicious. Try to get rid of underscores by renaming the file. – user11232 Aug 22 '14 at 3:38
  • Thanks I changed the name of the pdfs but now the error is: Argument of \@tempc has an extra } \end{frame} – vmgarciag Aug 22 '14 at 15:25
  • 1
    try \usepackage{grffile} – user2478 Aug 24 '14 at 12:10
  • No error here after removing the quotes "...". Please prepare a minimal compilable example. – AlexG Aug 27 '14 at 9:20
  • @AlexG Care for an answer? – percusse Jul 31 '15 at 21:18
2

The file basename (file name AP_inc_????.pdf without frame number and extension) has to be specified without quotes:

\animategraphics[controls,buttonsize=0.3cm,width=7.5cm]{5}{AP_inc_}{1997}{2013}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.