![如何使用之前的几张幻灯片制作动画](https://linux22.com/image/314687/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E4%B9%8B%E5%89%8D%E7%9A%84%E5%87%A0%E5%BC%A0%E5%B9%BB%E7%81%AF%E7%89%87%E5%88%B6%E4%BD%9C%E5%8A%A8%E7%94%BB.png)
我想用之前的几张幻灯片制作动画,我该怎么做?
\transduration
不影响\againframe
,如何避免
\documentclass{beamer}
\begin{document}
\begin{frame}[label=bob]
\begin{enumerate}[<+->]
\item a
\item b
\item c
\end{enumerate}
\end{frame}
\transduration<4->{.2}
\againframe<2->{bob}
\end{document}
答案1
\transduration
没有效果;可能是 bug。所以让我们手动操作一下:
\documentclass{beamer}
\begin{document}
\begin{frame}[label=bob]
\begin{enumerate}[<+->]
\item a
\item b
\item c
\end{enumerate}
\end{frame}
\typeout{***** before \string\transduration:\the\pdfpageattr *****}
\transduration{.2} %doesn't work, why?
\typeout{***** after \string\transduration:\the\pdfpageattr *****}
% save current value of \pdfpageattr
\edef\pdfpageattrOrig{\the\pdfpageattr}
% append page duration to the page attributes (do it manually)
\begingroup
\edef\x{\endgroup
\pdfpageattr{\the\pdfpageattr /Dur 0.2}%
}%
\x
\againframe<1->{bob} %auto-advancing frames
%reset page attributes to saved value
\begingroup
\edef\x{\endgroup
\pdfpageattr{\pdfpageattrOrig}%
}%
\x
\againframe<1->{bob} %frames don't auto-advance any more
\end{document}