Skip to content

Instantly share code, notes, and snippets.

@friedrich

friedrich/progress-bar.tex

Last active Jul 12, 2020
Embed
What would you like to do?
LaTeX Beamer progress bar template
\defbeamertemplate{footline}{progress bar}{
\dimen0=\paperwidth
\multiply\dimen0 by \insertframenumber
\divide\dimen0 by \inserttotalframenumber
\edef\progressbarwidth{\the\dimen0}
\leavevmode%
\vbox{%
\hbox{%
\begin{beamercolorbox}[wd=0.9\paperwidth,ht=3ex,dp=2ex,leftskip=1.5ex]{section in head/foot}
\usebeamerfont{section in head/foot}\insertsection
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=0.1\paperwidth,ht=3ex,dp=2ex,right,rightskip=1.5ex]{page number in head/foot}
\usebeamerfont{page number in head/foot}\insertframenumber{}/\inserttotalframenumber
\end{beamercolorbox}%
}%
\begin{beamercolorbox}[wd=\paperwidth,ht=1.75ex,dp=1ex]{progress bar}
\begin{beamercolorbox}[wd=\progressbarwidth,ht=1.75ex,dp=1ex]{progress bar progress}
\end{beamercolorbox}%
\end{beamercolorbox}%
}%
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.