I'm trying to create an animation to include into a beamer. I figured (naively I suppose) a way to do that is to create a Pdf with animate package, and then \includegraphics
it into my beamer. Running on Mac Os X 10.5.8 with Texlive.
Here is what I'd like to animate :
\documentclass{article}
\usepackage{pstricks-add}
\usepackage{auto-pst-pdf}
\usepackage{animate}
\newcommand{\rotatingarrow}[1]{
\begin{pspicture}(0,0)(10,10)%
\psaxes(0,0)(9,9)
\rput(6,1){\Huge{Temps = #1 s}}
\rput{#1}(4,4){
\psline[linecolor=blue,arrowsize=5pt]{->}(0,0)(2,1)\rput{#1}(2.3,1.3){\Huge{$\textcolor{blue}{\vec{v}}$}}
\psline[linecolor=red,arrowsize=5pt]{->}(2,1)(1,3)\rput{#1}(1.3,3.3){\Huge{$\textcolor{red}{\vec{a}}$}}
}
\end{pspicture}%
}
\begin{document}
\begin{center}
\begin{animateinline}[poster=last,loop,autoplay,width=5cm,height=5cm]{12}%
\multiframe{36}{iAngle=0+10}{%
\rotatingarrow{\iAngle}%
}%
\end{animateinline}%
\end{center}
\end{document}
Then compiling with LaTeX.
When I open it with Adobe, it does what I want. However, the animation isn't cropped. Then, pdfcrop seems to kill the file. After running pdfcrop on it, it'll be simply blank.
My question is : How do I proceed to have a cropped animation like I see in every tutorial ? How to include that animation into a Beamer (I suppose my idea is wrong).