Implement section page using the built-in beamer template

This commit is contained in:
Ross Churchley 2015-05-20 13:13:23 -07:00
parent ebcb4c9be4
commit 44a705195c
1 changed files with 25 additions and 11 deletions

View File

@ -206,21 +206,35 @@
%}}}
%{{{ --- Sections ---------------------
% Insert frame with section title at every section start
\AtBeginSection[]
\setbeamertemplate{section page}
{
\if@noSectionSlide%
\else%
\begingroup
\setbeamercolor{background canvas}{parent=palette primary}
\begin{frame}[plain]
\vspace{2em}\usebeamerfont{section title}
\vspace{2em}
\centering
\begin{minipage}{22em}
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionHEAD\\[-1ex]
\progressbar{\textwidth}
\end{frame}
\endgroup
\fi%
\end{minipage}
\par
}
% Insert frame with section title at every section start
\if@noSectionSlide\else%
\AtBeginSection[]
{
\ifbeamer@inframe
\sectionpage
\else
\begingroup
\setbeamercolor{background canvas}{parent=palette secondary}
\frame[plain]{\sectionpage}
\endgroup
\fi
}
\fi
%}}}
%{{{ --- Captions ---------------------