您能解释一下投影仪中的框架到底是什么吗?框架与幻灯片有何不同?我正在尝试从 MS PowerPoint 转换到,beamer
并希望清楚地理解这些概念。
答案1
将我的评论变成答案并添加示例:
框架是具有公共代码的幻灯片的集合(可能包含诸如\alt
或\only
等命令,这些命令将导致该框架内的幻灯片之间的差异)。
编译此示例以了解更多信息。它包含两个框架,每个框架都有一个标题……但第一个框架由多张幻灯片组成,第二个框架由两张幻灯片组成。
\documentclass{beamer}
\hypersetup{pdfpagemode=FullScreen}
\begin{document}
\begin{frame}[t,label=frameA]{This is the first frame}
This frame contains code that:
\begin{itemize}
\item Will be visible in all the slides of the frame like this line and everything above this \pause
\item Will be visible after some slide number inside the frame
and the upcoming slides of it like this particular text that appears after the second slide until the end of the frame.\pause
\item \alt<3>{Will be different from a slide to the next slide but will occupy the same place -Check this text in the next line-}{Text changed}\pause
\item We can refer and link to slide 2 of the next frame (labeled `frameB') by writing\\ \texttt{\textbackslash hypertarget$<$2$>$\{frameA\}\{\textbackslash beamerbutton\{I'm on the second slide\}\}}\\in that frame and calling it from here by the command:\\
\texttt{\textbackslash hyperlink\{labelB2\}\{Press here\}}
\end{itemize}
\hyperlink{labelB2}{Press here (to skip slide 1 of frameB)}
\end{frame}
\begin{frame}[label=frameB]{Second frame}
\alt<1>{First Slide}{}
\alt<2>{Second Slide\par
\hypertarget<2>{labelB2}{\beamerbutton{I’m on thesecond slide}}}{}
\end{frame}
\end{document}
编辑:
一个框架可以只包含一张幻灯片,如下所示:
\documentclass{beamer}
\hypersetup{pdfpagemode=FullScreen}
\begin{document}
\begin{frame}[label=frameA]{This is the first frame}
This frame contains code that:
\begin{itemize}
\item Will be visible in all the slides of the frame like this line and everything above this
\item Will be visible in all tlides inside the frame.
\item Will the same from a slide to the next slide.
\item We can refer and link to slide 2 of the next frame (labeled `frameB') by writing\\ \{frameA\}\{\textbackslash beamerbutton\{I'm on the second slide\}\}}\\in that frame and calling it from here by the command:\\
\texttt{\textbackslash hyperlink\{labelB2\}\{Press here\}}
\end{itemize}
\hyperlink{labelB}{Press here (to skip slide 1 of frameB)}
\end{frame}
\begin{frame}[label=frameB]{Second frame}
First and only Slide\par
\hypertarget{labelB}{\beamerbutton{I’m on thesecond slide}}
\end{frame}
\end{document}