Add experimental progressbar beneath title

This commit is contained in:
Matthias Vogelgesang 2014-09-26 15:34:21 +02:00
parent 9e4a9d6739
commit 4bd094304b
2 changed files with 18 additions and 2 deletions

View File

@ -11,7 +11,7 @@ all: $(PDF)
$(AUX):
$(TEXC) $(TEXC_OPTS) $(SRC)
$(PDF): $(AUX) $(SRC)
$(PDF): beamerthemem.sty $(AUX) $(SRC)
$(TEXC) $(TEXC_OPTS) $(SRC)
clean:

View File

@ -105,6 +105,18 @@
}
}
\def\progressbar@progressbarfoo{%
\progressbar@tmpcounta=\insertframenumber
\progressbar@tmpcountb=\inserttotalframenumber
\progressbar@tmpdim=\paperwidth
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
\divide\progressbar@tmpdim by \progressbar@tmpcountb
\begin{tikzpicture}[tight background]
\draw[mDarkBrown, fill=mDarkBrown] (0, 0) rectangle (\paperwidth, 0.2pt);
\draw[mLightBrown, fill=mLightBrown] (0, 0) rectangle (\progressbar@tmpdim, 0.2pt);
\end{tikzpicture}
}
%}}}
%{{{ --- Commands ---------------------
@ -170,9 +182,13 @@
%}}}
%{{{ --- Frametitle -------------------
\setbeamertemplate{frametitle}{%
\nointerlineskip
% \nointerlineskip
\begin{beamercolorbox}[wd=\paperwidth,leftskip=0.3cm,rightskip=0.3cm,ht=2.5ex,dp=1.5ex]{frametitle}
\usebeamerfont{frametitle}\MakeLowercase{\insertframetitle}%
\end{beamercolorbox}%
\vspace{-.5em}
\begin{beamercolorbox}[wd=\paperwidth,ht=1pt,dp=0pt]{frametitle}
\progressbar@progressbarfoo
\end{beamercolorbox}
}
%}}}