X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;ds=sidebyside;f=beamerthememjo.sty;fp=beamerthememjo.sty;h=2e18d760cd7849ea46bafe00b58340135dfd1b4c;hb=407e6561659b75b7f6fb01390fb50ac086f0c5b2;hp=0000000000000000000000000000000000000000;hpb=77b022035cdd70cd5004c08a290e6e9f7e815725;p=beamer-mjo.git diff --git a/beamerthememjo.sty b/beamerthememjo.sty new file mode 100644 index 0000000..2e18d76 --- /dev/null +++ b/beamerthememjo.sty @@ -0,0 +1,58 @@ +\ProcessOptionsBeamer + +\mode + +\useinnertheme{mjo} +\useoutertheme{mjo} +\usefonttheme{mjo} +\usecolortheme{mjo} + +% Create a slide introducing new sections. +\AtBeginSection[]{ + \begin{frame} + \frametitle{ + \ifx\insertpart\@empty% + \else% + Part \thepart, % + \fi% + Section \thesection + } + \vfill + \begin{center} + \usebeamerfont{title} + \ifx\insertpart\@empty% + \else% + \insertpart: % + \fi% + \insertsectionhead\par% + \end{center} + \vfill + \end{frame} +} + +% Define a new ``partsecframe'' environment that uses a default frame +% title of ``:
'' when no other frame title is given. +\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