![在 Beamer 中停止幻灯片滚动](https://linux22.com/image/347638/%E5%9C%A8%20Beamer%20%E4%B8%AD%E5%81%9C%E6%AD%A2%E5%B9%BB%E7%81%AF%E7%89%87%E6%BB%9A%E5%8A%A8.png)
我在演示结束时有一些备用幻灯片,可通过超链接访问。因此,我想在最后一个“实际”幻灯片处“停止”幻灯片的滚动(通过单击 PageUp / Page Down 或旋转鼠标滚轮完成),以防止我在演示过程中错误地显示附加幻灯片。这可以吗?我不确定我是否表达清楚了...
梅威瑟:
\documentclass{beamer}
\begin{document}
\begin{frame}[label=mainBody]
txt 1
\hyperlink{accessorySlide}{\beamerbutton{jump to accessory slide}}
\end{frame}
\begin{frame}
txt 2
\end{frame}
\begin{frame}
Thank you
\end{frame}
\begin{frame}[label=accessorySlide]
accessory information
\hyperlink{mainBody}{\beamerbutton{jump back to main body}}
\end{frame}
\end{document}
我希望在演示模式下,无法滚动超出“谢谢”幻灯片
答案1
这是基于上一个关于循环播放最后一张或两张幻灯片的问题的答案。相反,当前进到最后一张幻灯片的副本时,它会跳回到最后一张幻灯片。到目前为止,我只在 Windows 版 Adobe Reader X 中测试过它(在演示模式下)。
\documentclass{beamer}
\begin{document}
\begin{frame}
Title
\end{frame}
\begin{frame}
Content
\end{frame}
\begin{frame}[label=TheEnd]
Thank you
\end{frame}
\begingroup
\edef\x{\endgroup
\pdfpageattr{
\the\pdfpageattr /Dur 0.2
/AA <<
/O <<
/S/JavaScript /JS(
var retVal=app.setTimeOut( "this.pageNum--;", 10);
)
>>
>>
}%
}%
\x
\againframe{TheEnd} %auto-advancing frames
\begin{frame}
Backup
\end{frame}
\end{document}
答案2
这可以通过使用 PDF 规范的子页面导航功能来实现。它适用于Acrobat 阅读器 DC并要求全屏(Ctrl-L)模式。
请注意,辅助幻灯片的反向链接(GoBack
操作)在 A-Readers X 和 XI 中不起作用。GoBack
幸运的是,它在 AR-9 中起作用,并且又回到了 AR-DC。
\documentclass{beamer}
\hypersetup{colorlinks}
\begin{document}
\begin{frame}{Intro}
\end{frame}
\begin{frame}{Slide 1}
Read more \hyperlink{aux1}{here}.
Read even more \hyperlink{aux2}{here}.
\end{frame}
\begin{frame}{Slide 2}
Read more \hyperlink{aux2}{here}.
Read even more \hyperlink{aux2}{here}.
\end{frame}
\begin{frame}{Slide 3}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% In FULL SCREEN mode of Acrobat Reader this code
% doesn't allow the viewer to go past the "Summary" page.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\edef\pdfpageattrSaved{{\the\pdfpageattr}}
\begingroup
\edef\x{\endgroup
\pdfpageattr{%
\the\pdfpageattr
/PresSteps <<
/NA<</S/Named/N/NOP>> %no-op on page open
/Next<<
/NA<</S/GoTo/D (slideSummary)>>
>>
>>
}%
}%
\x
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Summary}\hypertarget{slideSummary}{}
Thank you for your attention!
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% reset no normal behaviour
\expandafter\pdfpageattr\pdfpageattrSaved
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Aux slide 1}\hypertarget{aux1}{}
Go \Acrobatmenu{GoBack}{back}.
\end{frame}
\begin{frame}{Aux slide 2}\hypertarget{aux2}{}
Go \Acrobatmenu{GoBack}{back}.
\end{frame}
\end{document}