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.

5
  • 3
    Just a guess AP_inc_ looks suspicious. Try to get rid of underscores by renaming the file.
    – user11232
    Commented 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
    Commented Aug 22, 2014 at 15:25
  • 1
    try \usepackage{grffile}
    – user2478
    Commented Aug 24, 2014 at 12:10
  • No error here after removing the quotes "...". Please prepare a minimal compilable example.
    – AlexG
    Commented Aug 27, 2014 at 9:20
  • @AlexG Care for an answer?
    – percusse
    Commented Jul 31, 2015 at 21:18

1 Answer 1

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}

You must log in to answer this question.

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