不久前我创建了一个 Beamer 主题。使用一段时间后,我注意到如果文本太长,框架将不会在另一个框架上显示剩余的文本。为了解决这个问题,我使用了一个新的框架标题。经过一番研究,我发现了选项[allowframebreaks]
。这个选项通常与一起使用begin{frame}
。我尝试将它与几个setbeamertemplate{}
变体结合使用。问题是标题页的背景画布重复或大部分文本未显示。
我的beameroutertheme.sty看起来像这样:
\mode<presentation>
\setbeamertemplate{background canvas}{%
\transparent{0.4}\hspace*{-0.2cm}\includegraphics[width=1.03\paperwidth,keepaspectratio]{images/title.png}
}
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[wd=\paperwidth,ht=.8cm,dp=1ex,left]{footline}%
\hspace*{3.2cm}\includegraphics[width=2.7cm]{images/logo.png}
\end{beamercolorbox}%
}
\defbeamertemplate*{title page}{mydefault}[1][]{
\vspace*{0.5cm}
\begingroup
\begin{columns}
\column{0.365\paperwidth}% Here
\mbox{}
\column{0.635\paperwidth}% Here
\begin{beamercolorbox}[sep=8pt,center,#1]{title}
\usebeamerfont{title}\inserttitle\par%
\end{beamercolorbox}%
\vspace*{0.9cm}
\begin{beamercolorbox}[sep=8pt,center,#1]{subtitle}
\ifx\insertsubtitle\@empty%
\else%
\usebeamerfont{subtitle}\insertsubtitle\par%
\fi%
\end{beamercolorbox}%
\vspace*{0.8cm}
\begin{beamercolorbox}[sep=8pt,center,#1]{author}
\usebeamerfont{author}\insertauthor\par
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center,#1]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\end{columns}
\endgroup
\vfill
}
\setbeamertemplate{title page}[mydefault][]
\BeforeBeginEnvironment{frame}{%}
\setbeamertemplate{frametitle}{
\vspace*{-0.05cm}\insertframetitle
\vspace*{-0.2cm}\hspace*{-.1cm}\begin{beamercolorbox}[wd=\paperwidth,ht=.05cm]{headline}%
\end{beamercolorbox}%
}
%backgroundpicture to white
\setbeamertemplate{background canvas}{%
}
\setbeamertemplate{sidebar canvas left}{%
\begin{beamercolorbox}[wd=0.25cm,ht=\paperheight,dp=1ex,right]{sidebar left}%
\end{beamercolorbox}%
}
%Fußzeile
\setbeamertemplate{footline}{%
\hspace*{0.5cm}\vspace*{0.2cm}\begin{beamercolorbox}[wd=13cm,ht=.018cm,center]{footline}%
\end{beamercolorbox}
\begingroup
\begin{columns}
\column{0.5\paperwidth}
\hspace*{0.95cm}\begin{beamercolorbox}[wd=0.5\paperwidth,ht=0.1cm,dp=1ex,left]{title}%
\usebeamerfont*{author in head/foot}\insertauthor%
\end{beamercolorbox}
\column{0.5\paperwidth}
\begin{beamercolorbox}[wd=0.5\paperwidth,ht=0.1cm,dp=1ex,center]{title}%
\hspace*{2cm}\insertframenumber
\end{beamercolorbox}
\end{columns}
\endgroup
}
}
\mode<all>
在我的情况下,这个[allowframebreaks]
选项真的需要吗?或者有更好的方法吗?我怎样才能获得我需要的自动断帧?