1

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 Answers1

3

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}

AlexG
  • 54,894