X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=beamerthemeUMBC.sty;h=6824ac8a18928e05e17d11c395b36e069a35246e;hb=769943e0276228d2db9a7f89cd057d491eea4716;hp=ac0a4a610428fb5dc30372ae8d7566610c698736;hpb=59a96495b08104f6a916132537d0c0f8efea3ad0;p=beamer-mjo.git diff --git a/beamerthemeUMBC.sty b/beamerthemeUMBC.sty index ac0a4a6..6824ac8 100644 --- a/beamerthemeUMBC.sty +++ b/beamerthemeUMBC.sty @@ -10,10 +10,21 @@ % Create a slide introducing new sections. \AtBeginSection[]{ \begin{frame} - \frametitle{Part \thepart, Section \thesection} + \frametitle{ + \ifx\insertpart\@empty% + \else% + Part \thepart, % + \fi% + Section \thesection + } \vfill \begin{center} - \usebeamerfont{title}\insertpart: \insertsectionhead\par% + \usebeamerfont{title} + \ifx\insertpart\@empty% + \else% + \insertpart: % + \fi% + \insertsectionhead\par% \end{center} \vfill \end{frame} @@ -21,8 +32,27 @@ % Define a new ``partsecframe'' environment that uses a default frame % title of ``:
'' when no other frame title is given. -\newenvironment{partsecframe}[1][\insertpart: \insertsectionhead] +\newenvironment{partsecframe}[1][% + \ifx\insertpart\@empty% + \else% + \insertpart: % + \fi% + \insertsectionhead% +] {\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