]> gitweb.michael.orlitzky.com - beamer-mjo.git/blob - beamerthemeUMBC.sty
Add a new "parsecframe" environment with automatic "part: section" titling.
[beamer-mjo.git] / beamerthemeUMBC.sty
1 \ProcessOptionsBeamer
2
3 \mode<presentation>
4
5 \useinnertheme{UMBC}
6 \useoutertheme{UMBC}
7 \usefonttheme{UMBC}
8 \usecolortheme{UMBC}
9
10 % Create a slide introducing new sections.
11 \AtBeginSection[]{
12 \begin{frame}
13 \frametitle{Part \thepart, Section \thesection}
14 \vfill
15 \begin{center}
16 \usebeamerfont{title}\insertpart: \insertsectionhead\par%
17 \end{center}
18 \vfill
19 \end{frame}
20 }
21
22 % Define a new ``partsecframe'' environment that uses a default frame
23 % title of ``<part>: <section>'' when no other frame title is given.
24 \newenvironment{partsecframe}[1][\insertpart: \insertsectionhead]
25 {\begin{frame}{#1}}
26 {\end{frame}}
27
28 \mode<all>