{\begin{frame}{#1}}
{\end{frame}}
+% Define a new ``refsframe'' environment for the bibliography.
+% It automatically handles the frame breaks, and fixes the busted
+% vertical spacing on slides >= 2. The extra curly braces ensure that
+% the change to the ``frametitle continuation'' template are only
+% temporary.
+\newenvironment{refsframe}[1][References] {
+ \splittopskip=2.13em % Fixes the vertical spacing of split frames.
+ \setbeamertemplate{frametitle continuation}{} % Same title for all frames.
+ \begin{frame}[allowframebreaks]{#1}
+ }
+ { \end{frame} }
+
+
\mode<all>