[latex]animate宏包中使用timeline来控制动画的播放程序,下面是一个示例:
首先建立一个timeline文件
::0
::1
::1,2
::1,2,3
::4
然后再animate中使用:
\documentclass{beamer}
\input{preamble.tex}
\input{tikzall.tex} %包含所有的tikz包
\begin{document}
\begin{frame}
显示timeline的用法:\\
\begin{center}
\begin{animateinline}
[autoplay,loop,timeline=simple.txt]{1}
\fbox{the zero frame.}
\newframe
one ~~~~~~ ~~~~~~
\newframe
~~~~~~ two ~~~~~~
\newframe
~~~~~~ ~~~~~~ three
\newframe
the end
\end{animateinline}
\end{center}
\end{frame}
\end{document}
那么动画就会使用timeline来控制播放循序.