Fix #128: add `simple' key to inner/sectionpage

Adds a new simple style which only sets the section title centered on a section
page.
This commit is contained in:
Matthias Vogelgesang 2015-10-23 11:47:22 +02:00
parent eb5a7d7c9d
commit f47e1696c3
4 changed files with 20 additions and 2 deletions

Binary file not shown.

View File

@ -255,8 +255,9 @@ option on every sub-package accordingly.
light grey or be transparent. light grey or be transparent.
} }
\DescribeOption{sectionpage}{none, progressbar}{progressbar}{ \DescribeOption{sectionpage}{none, simple, progressbar}{progressbar}{
Adds a thin progress bar similar to the section progress bar underneath each frame title. Disable section pages at all, typeset centered section title or add a thin
progress bar below the centered section title.
} }
\DescribeOption{titleformat}{regular, lowercase, uppercase}{lowercase}{ \DescribeOption{titleformat}{regular, lowercase, uppercase}{lowercase}{

Binary file not shown.

View File

@ -105,6 +105,7 @@
/metropolis/inner/sectionpage/.cd, /metropolis/inner/sectionpage/.cd,
.is choice, .is choice,
none/.code=\@metropolis@sectionpage@none, none/.code=\@metropolis@sectionpage@none,
simple/.code=\@metropolis@sectionpage@simple,
progressbar/.code=\@metropolis@sectionpage@progressbar, progressbar/.code=\@metropolis@sectionpage@progressbar,
} }
% \end{macrocode} % \end{macrocode}
@ -310,6 +311,22 @@
% intenionally empty % intenionally empty
} }
} }
\defbeamertemplate{section page}{simple}{
\centering
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\\
}
\newcommand{\@metropolis@sectionpage@simple}{
\setbeamertemplate{section page}[simple]
\AtBeginSection{
\ifbeamer@inframe
\sectionpage
\else
\frame[plain,c]{\sectionpage}
\fi
}
}
\defbeamertemplate{section page}{progressbar}{ \defbeamertemplate{section page}{progressbar}{
\centering \centering
\begin{minipage}{22em} \begin{minipage}{22em}