1 首先在目標(biāo)latex文件夾中加入一個(gè)figs文件夾:
里面放入逐幀圖片(這里27張圖片)gif轉(zhuǎn)逐幀png方法

2 manuscript.tex中寫(xiě)入如下命令:
最上面加入宏
\usepackage{animate}
動(dòng)圖命令如下(假設(shè)圖片是從 1-25):
\begin{figure}[!h]
\centering
\animategraphics[width=10cm,height=10cm, autoplay, loop, controls]{10}{fig/images-}{1}{25}
\caption{\small (Color animation online) interaction}
\label{fig1}
\end{figure}
效果如下:
