Implement section page using the built-in beamer template
This commit is contained in:
parent
ebcb4c9be4
commit
44a705195c
|
@ -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 ---------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue