diff --git a/demo/demo.pdf b/demo/demo.pdf index 5327677..4a05887 100644 Binary files a/demo/demo.pdf and b/demo/demo.pdf differ diff --git a/doc/metropolistheme.dtx b/doc/metropolistheme.dtx index a445a92..fc38c7c 100644 --- a/doc/metropolistheme.dtx +++ b/doc/metropolistheme.dtx @@ -255,8 +255,9 @@ option on every sub-package accordingly. light grey or be transparent. } -\DescribeOption{sectionpage}{none, progressbar}{progressbar}{ - Adds a thin progress bar similar to the section progress bar underneath each frame title. +\DescribeOption{sectionpage}{none, simple, progressbar}{progressbar}{ + 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}{ diff --git a/doc/metropolistheme.pdf b/doc/metropolistheme.pdf index 565cc88..5228145 100644 Binary files a/doc/metropolistheme.pdf and b/doc/metropolistheme.pdf differ diff --git a/source/beamerinnerthememetropolis.dtx b/source/beamerinnerthememetropolis.dtx index 4020e7a..58b8180 100644 --- a/source/beamerinnerthememetropolis.dtx +++ b/source/beamerinnerthememetropolis.dtx @@ -105,6 +105,7 @@ /metropolis/inner/sectionpage/.cd, .is choice, none/.code=\@metropolis@sectionpage@none, + simple/.code=\@metropolis@sectionpage@simple, progressbar/.code=\@metropolis@sectionpage@progressbar, } % \end{macrocode} @@ -310,6 +311,22 @@ % 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}{ \centering \begin{minipage}{22em}