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}

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, 2014 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, 2014 at 15:25
  • 1
    try \usepackage{grffile}
    – user2478
    Aug 24, 2014 at 12:10
  • No error here after removing the quotes "...". Please prepare a minimal compilable example.
    – AlexG
    Aug 27, 2014 at 9:20
  • @AlexG Care for an answer?
    – percusse
    Jul 31, 2015 at 21:18

1 Answer 1


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


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .