From b4014101fec3c12a5f5960817f97234511ac1aa5 Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Thu, 11 Jan 2024 09:00:15 +0100 Subject: [PATCH] fix: set maxium progressbar to 1 This solves https://github.com/matze/mtheme/issues/274. --- src/beamerouterthememoloch.dtx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/beamerouterthememoloch.dtx b/src/beamerouterthememoloch.dtx index cc79837b..7e4827b4 100644 --- a/src/beamerouterthememoloch.dtx +++ b/src/beamerouterthememoloch.dtx @@ -191,9 +191,7 @@ \setlength{\moloch@progressinheadfoot@linewidth}{0.4pt} \setbeamertemplate{progress bar in head/foot}{ \nointerlineskip - \setlength{\moloch@progressinheadfoot}{% - \paperwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}% - }% + \pgfmathsetlength{\metropolis@progressinheadfoot}{\paperwidth * min(1,\insertframenumber/\inserttotalframenumber} \begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot} \tikzexternaldisable% \begin{tikzpicture}