當項目可見時如何自動播放動畫圖形?這是我的程式碼(動畫圖形位於第二項中。現在,當我單擊它時,圖形就會啟動
\begin{frame}
\frametitle{Title}
\begin{enumerate}
\item<1-> item1
\item<2-> item with the animated graphic
\begin{tikzpicture}
\node<2>[inner sep=0pt] (video1) at (-1.5,.1) {\animategraphics[loop,width=.4\textwidth,autoplay]{8}{graphics/frames/breaststroke/breaststroke-}{0}{29}};
\end{tikzpicture}
\item<3-> item3
\end{enumerate}
\end{frame}
答案1
嗯,這對我有用,不需要額外的點擊:
\documentclass{beamer}
\usepackage{animate}
\usepackage{tikz}
\usepackage{graphics}
\begin{document}
\begin{frame}
\frametitle{Title}
\begin{enumerate}
\item<1-> item1
\item<2-> item with the animated graphic
\begin{tikzpicture}
\node<2>[inner sep=0pt] (video1) at (-1.5,.1) {\animategraphics[loop,width=.4\textwidth,autoplay]{8}{example-image-a4-numbered}{}{}};
\end{tikzpicture}
\item<3-> item3
\end{enumerate}
\end{frame}
\end{document}
(始終提供可編譯的範例,如問題評論所示。)