Fix #15: rescale widths for large slide number
This commit is contained in:
parent
e16f4a9757
commit
eee32d1665
|
@ -17,6 +17,7 @@
|
||||||
\usepackage{pgfplots}
|
\usepackage{pgfplots}
|
||||||
|
|
||||||
\usetikzlibrary{backgrounds}
|
\usetikzlibrary{backgrounds}
|
||||||
|
\usetikzlibrary{calc}
|
||||||
|
|
||||||
\usecolortheme{metropolis}
|
\usecolortheme{metropolis}
|
||||||
\usefonttheme{metropolis}
|
\usefonttheme{metropolis}
|
||||||
|
@ -91,8 +92,10 @@
|
||||||
\progressbar@tmpcounta=\insertframenumber
|
\progressbar@tmpcounta=\insertframenumber
|
||||||
\progressbar@tmpcountb=\inserttotalframenumber
|
\progressbar@tmpcountb=\inserttotalframenumber
|
||||||
\progressbar@tmpdim=\progressbar@pbwd
|
\progressbar@tmpdim=\progressbar@pbwd
|
||||||
|
\divide\progressbar@tmpdim by 100
|
||||||
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
|
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
|
||||||
\divide\progressbar@tmpdim by \progressbar@tmpcountb
|
\divide\progressbar@tmpdim by \progressbar@tmpcountb
|
||||||
|
\multiply\progressbar@tmpdim by 100
|
||||||
|
|
||||||
\makebox[\textwidth][c]{
|
\makebox[\textwidth][c]{
|
||||||
\begin{tikzpicture}[tight background]
|
\begin{tikzpicture}[tight background]
|
||||||
|
@ -113,11 +116,13 @@
|
||||||
\progressbar@tmpcounta=\insertframenumber
|
\progressbar@tmpcounta=\insertframenumber
|
||||||
\progressbar@tmpcountb=\inserttotalframenumber
|
\progressbar@tmpcountb=\inserttotalframenumber
|
||||||
\progressbar@tmpdim=\paperwidth
|
\progressbar@tmpdim=\paperwidth
|
||||||
|
\divide\progressbar@tmpdim by 100
|
||||||
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
|
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
|
||||||
\divide\progressbar@tmpdim by \progressbar@tmpcountb
|
\divide\progressbar@tmpdim by \progressbar@tmpcountb
|
||||||
|
\multiply\progressbar@tmpdim by 100
|
||||||
|
|
||||||
\begin{tikzpicture}[tight background]
|
\begin{tikzpicture}[tight background]
|
||||||
\draw[mDarkBrown, fill=mDarkBrown] (0, 0) rectangle (\paperwidth, 0.2pt);
|
\draw[mDarkBrown, fill=mDarkBrown] (0, 0) rectangle ($(\paperwidth, 0.2pt) - (0.4pt, 0)$);
|
||||||
\draw[mLightBrown, fill=mLightBrown] (0, 0) rectangle (\progressbar@tmpdim, 0.2pt);
|
\draw[mLightBrown, fill=mLightBrown] (0, 0) rectangle (\progressbar@tmpdim, 0.2pt);
|
||||||
\end{tikzpicture}
|
\end{tikzpicture}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue