
我有兩張使用 TikZ 繪製的圖片。當我將它們放在兩個不同的框架中時,beamer
它們完美地顯示出來。但我想對它們進行動畫處理,也就是說,我想要透過點擊滑鼠來一張接一張地顯示圖片。
我已經寫了這個,但我只得到第一張圖片作為輸出。
\documentclass{beamer}
\mode<presentation>{\usetheme{Warsaw}}
\usepackage{adjustbox}
\usepackage{animate}
\usepackage{comment}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{pgfplots.groupplots}
\usetikzlibrary{positioning}
\begin{document}
\begin{frame}
\begin{animateinline}{2}
\begin{tikzpicture}
.........
\end{tikzpicture}
\newframe*
\begin{tikzpicture}
.........
\end{tikzpicture}
\end{animateinline}
\end{frame}