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 --------------------- %{{{ --- Sections ---------------------
% Insert frame with section title at every section start \setbeamertemplate{section page}
\AtBeginSection[]
{ {
\if@noSectionSlide% \vspace{2em}
\else% \centering
\begingroup \begin{minipage}{22em}
\setbeamercolor{background canvas}{parent=palette primary} \usebeamercolor[fg]{section title}
\begin{frame}[plain] \usebeamerfont{section title}
\vspace{2em}\usebeamerfont{section title} \insertsectionHEAD\\[-1ex]
\progressbar{\textwidth} \progressbar{\textwidth}
\end{frame} \end{minipage}
\endgroup \par
\fi%
} }
% 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 --------------------- %{{{ --- Captions ---------------------