Beamer,带不同字幕的帧中断

Beamer,带不同字幕的帧中断

Beamer 演示文稿中的一帧可以分为具有相同帧标题的多个帧。随后可以枚举这些标题。在这种情况下,有没有办法让具有共同标题的共同帧中的每个幻灯片都有属于其所属幻灯片的单独字幕?从最小示例中可以看出,现在将最后一个字幕视为幻灯片的共同字幕……

\documentclass{beamer}
%---------------------------------------------------------------%
\usepackage{graphics,tikz}
%---------------------------------------------------------------%
\begin{document}
%---------------------------------------------------------------%
\begin{frame}[allowframebreaks]
\frametitle{Common title, appearing on all slides in one frame}
\framesubtitle{The first frame subtitle}
%------------------------------------------------------------ 1
\begin{itemize}
\item some text
\item some text
\item some text
\item   \dots

\end{itemize}
%------------------------------------------------------------ 2
\framebreak
\framesubtitle{The second frame subtitle}
\begin{itemize}
\item some text
\item some text
\item some text
\item   \dots
\end{itemize}
%------------------------------------------------------------ 3
\framebreak
\framesubtitle{The third frame subtitle}
\begin{itemize}
\item some text
\item some text
\item some text
\item   \dots
\end{itemize}


\end{frame}
%---------------------------------------------------------------%
\end{document}

答案1

不要使用allowframebreaks;的文档beamer有以下建议:

使用该allowframebreaks选项会导致创建可怕的、无休止的演示文稿,这些演示文稿更像是“投影在墙上的纸张”,而不是演示文稿。尽管如此,该选项确实有其用途。最明显的是,它可以方便地自动拆分参考书目或长方程式。

您也可以使用覆盖规范;这里有一个使用的示例\only

\documentclass{beamer}
%---------------------------------------------------------------%
\usepackage{graphics,tikz}
%---------------------------------------------------------------%
\begin{document}
%---------------------------------------------------------------%
\begin{frame}
\frametitle{Common title, appearing on all slides in one frame}
%------------------------------------------------------------ 1
\only<1>{
\framesubtitle{The first frame subtitle}
\begin{itemize}
\item some text on slide 1
\item some text
\item some text
\item   \dots

\end{itemize}}
%------------------------------------------------------------ 2
\only<2>{
\framesubtitle{The second frame subtitle}
\begin{itemize}
\item some text on slide 2
\item some text
\item some text
\item   \dots

\end{itemize}}
%------------------------------------------------------------ 3
\only<3>{
\framesubtitle{The third frame subtitle}
\begin{itemize}
\item some text on slide 3
\item some text
\item some text
\item   \dots

\end{itemize}}
\end{frame}
%---------------------------------------------------------------%
\end{document}

在此处输入图片描述

如果使用该包创建的逐字材料listings必须在(或任何其他命令)的参数中\only,则必须采取一些预防措施;额外的工作在第节中描述5.1 参数内的列表列表文档(请注意,这是一个实验性功能):

\documentclass[compress]{beamer}
\usepackage[english]{babel}
\usepackage{listings} 


 %---------------------------------------------------------------%
\begin{document}
%---------------------------------------------------------------%

\begin{frame}[fragile]

\begin{lstlisting}
\usepackage{graphicx}
\end{lstlisting}

\end{frame}
%------------------------------------------------------------------------------------

\begin{frame}[fragile]
\frametitle{Figures and Graphics}

%------------------------------------------------------------------------------------
\only<1>{
\framesubtitle{Including Graphics}
\begin{lstlisting}^^J
\\usepackage\{graphicx\}^^J
\end{lstlisting}
}
%------------------------------------------------------------ 2
\only<2>{
\framesubtitle{The second frame subtitle}
\begin{itemize}
\item some text on slide 2
\item some text
\item some text
\item   \dots

\end{itemize}}
%%------------------------------------------------------------ 3
\only<3>{
\framesubtitle{The third frame subtitle}
\begin{itemize}
\item some text on slide 3
\item some text
\item some text
\item   \dots

\end{itemize}}
\end{frame}
%---------------------------------------------------------------%
\end{document}

在此处输入图片描述

相关内容