I'm using animate to generate animated images, read by acroread. It seems this pdf can't be included in another TeX file without loosing the animation capabilities so I'm using \includestandalone with mode=tex to generate to have the animated image compiled in the main TeX file. This can take a very long time, at each compilation.
In order to save some time when writing/compiling other parts of the file, I'd like to use the mode=image of \includestandalone for most compilations and only swith tho mode=tex for the final one. However only a blank space is produced, even though a regular pdf viewer like evince has no problem displaying the first view of the animation pdf file.
In the following example, I tried both includestandalone[mode=image] and includegraphics with no success. Of cours, includestandalone[mode=tex] works and includegraphics successfully displays a png version of the animated pdf produced by convert.
Main TeX file:
\documentclass{article}
\usepackage{standalone,animate,tikz}
\begin{document}
\begin{frame}
\includestandalone[mode=image,height=.25\textheight]{test-animate}
\includegraphics[height=.25\textheight]{test-animate.pdf}
\includegraphics[height=.25\textheight]{test-animate.png}
\includestandalone[mode=tex,height=.25\textheight]{test-animate}
\end{frame}
\end{document}
Animation TeX file (rename to test-animate.tex)
\documentclass{standalone}
\RequirePackage{tikz}
\RequirePackage{animate}
\begin{document}
\begin{animateinline}[poster=first,controls,loop]{1}%
\multiframe{5}{icount=0+10}{%
\begin{tikzpicture}
\draw (-5,-5) rectangle (5,5);
\draw (0,0) -- (\icount:4);
\end{tikzpicture}
}
\end{animateinline}
\end{document}
Here are the corresponding pictures
pdf->png version of the main TeX file
test-animate.png
animate
package option "draft
" to save compile time while working on the document? – AlexG Sep 15 '15 at 12:02