fix: set maxium progressbar to 1

This solves https://github.com/matze/mtheme/issues/274.
This commit is contained in:
Johan Larsson 2024-01-11 09:00:15 +01:00
parent 259f67a585
commit b4014101fe
1 changed files with 1 additions and 3 deletions

View File

@ -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}