From 762bc408ccb9c455b4f069f96e00c48a7ac120c3 Mon Sep 17 00:00:00 2001 From: Joseph Wright Date: Sat, 2 Dec 2017 13:50:57 +0000 Subject: [PATCH] Patch latest beamer section commands This fixes #303. --- source/beamerfontthememetropolis.dtx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/beamerfontthememetropolis.dtx b/source/beamerfontthememetropolis.dtx index 3e62952..3b9c2fd 100644 --- a/source/beamerfontthememetropolis.dtx +++ b/source/beamerfontthememetropolis.dtx @@ -368,6 +368,12 @@ {} {\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc} \@tempswafalse +\patchcmd{\beamer@section} + {\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}} + {\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{% + \noexpand\metropolis@sectiontitleformat{\unexpanded{#1}}}}} + {\@tempswatrue} + {} \patchcmd{\beamer@section} {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}} {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{% @@ -384,6 +390,12 @@ \PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc \fi \@tempswafalse +\patchcmd{\beamer@subsection} + {\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}} + {\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{% + \noexpand\metropolis@sectiontitleformat{\unexpanded{#1}}}}} + {\@tempswatrue} + {} \patchcmd{\beamer@subsection} {\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}} {\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%