如何制作超链接跳转到选择的第一张幻灯片\againframe
?
\documentclass{beamer}
\begin{document}
\begin{frame}[label=bob]
\begin{enumerate}[<+>]
\item 1
\item 2
\item 3 %\hyperlink to the \againframe below
\item 4
\item 5
\item 6
\end{enumerate}
\end{frame}
\againframe<2,4,6>{bob}
\end{document}
答案1
\documentclass{beamer}
\let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764
\begin{document}
\begin{frame}[label=bob]
\begin{enumerate}[<+>]
\item 1
\item 2
\item 3 \hyperlinkframestartnext{Animation}
\item 4
\item 5
\item 6
\end{enumerate}
\end{frame}
% append page duration to the page attributes (do it manually)
\begingroup
\edef\x{\endgroup
\pdfpageattr{
\the\pdfpageattr /Dur 0.2
/AA <<
/O <<
/S/JavaScript /JS(
if(this.pageNum==this.numPages-1)
var retVal=app.setTimeOut( "this.pageNum=6;", 200 );
)
>>
>>
}%
}%
\x
\againframe<2,4,6>{bob} %auto-advancing frames
\end{document}
答案2
不能保证这不会破坏任何东西,但也许你可以暂时重新定义密钥relabel
,将一个新标签(我们称之为foo
)偷运到重复框架中。
\documentclass{beamer}
\begin{document}
\begin{frame}[label=bob]
\begin{enumerate}[<+>]
\item 1
\item 2
\item 3 \hyperlink{foo<4>}{link text}%\hyperlink to the \againframe below
\item 4
\item 5
\item 6
\end{enumerate}
\end{frame}
\begin{frame}
other frame
\end{frame}
{
\makeatletter
\define@key{beamerframe}{relabel}{\def\beamer@againname{foo}%
{\let\@elt\beamer@labelsavecounter\beamer@overlaycounterresets}%
}
\makeatother
\againframe<2,4,6>{bob}
}
\end{document}