mirror of https://github.com/matze/mtheme.git
Implement section page using the built-in beamer template
This commit is contained in:
parent
ebcb4c9be4
commit
44a705195c
|
@ -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 ---------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue