I would like to learn how to use the animate package, I need a person can teach me, please I need this, help me. Thanks
1 Answers
Below, there are three basic examples to get you started. They compile out of the box.
Animations can be made from inline code, using the animateinline environment, and from external graphics files, using the \animategraphics command.
\documentclass[margin=1pt]{standalone}
\usepackage{animate}
\begin{document}
\begin{animateinline}[controls=play,loop,scale=3]{1}
\fbox{0}
\newframe
\fbox{1}
\newframe
\fbox{2}
\newframe
\fbox{3}
\newframe
\fbox{4}
\end{animateinline}
\end{document}
same result, but using parameterized code in a \multiframe loop:
\documentclass[margin=1pt]{standalone}
\usepackage{animate}
\begin{document}
\begin{animateinline}[controls=play,loop,scale=3]{1}
\multiframe{5}{i=0+1}{\fbox{\i}}
\end{animateinline}
\end{document}
from external multi-page PDF file:
\documentclass[margin=1pt]{standalone}
\usepackage{animate}
\usepackage{graphicx}
\begin{document}
\animategraphics[
controls=play,
width=1.5cm
]{1}{example-image-a4-numbered}{0}{4}
\end{document}
- 54,894
-
The first \fbox{0} code compiles but not annimate, either on overleaf or xchange pdf viewer. – Gqqnbig Mar 22 '24 at 02:21
animatemanual? – AlexG Nov 17 '20 at 16:24animate? should be interesting. – leandriis Nov 17 '20 at 18:31