Skip to content
Snippets Groups Projects
Commit 9df9e6a1 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

progressbar (2)

parent 28c7f8c9
Branches
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@
\setbeamercolor{progress bar}{bg=PTBblue!60,fg=white}
\setbeamercolor{progress bar progress}{bg=PTBblue,fg=white}
\setbeamercolor{progress bar numbers}{fg=PTBblue}
\mode<all>
......
......@@ -109,6 +109,8 @@
\setbeamerfont{item projected}{series=\bfseries}
\setbeamerfont{block title}{size=\normalsize,series=\bfseries}
\setbeamerfont{progress bar numbers}{series=\bfseries}
\mode<all>
\endinput
......
......@@ -57,7 +57,43 @@
\vskip0pt %
\fi
\fi
}
}
\newcommand*\PTB@numbers{}
\newcommand*\PTB@prepare@numbersX{%
\@tempcnta=1 %
\@tempcntb=\numexpr\inserttotalframenumber + 1%
\let\PTB@tempa=\@empty
\let\PTB@numbers=\@empty
\loop\ifnum\@tempcnta<\@tempcntb
\protected@edef\PTB@numbers{\PTB@numbers\PTB@tempa\noexpand\PTB@circled{\the\@tempcnta}}%
\def\PTB@tempa{\hfill}%
\advance\@tempcnta\@ne %
\repeat
}
\newcommand*\PTB@prepare@numbers{%
\@tempcnta=1 %
\@tempcntb=\numexpr\inserttotalframenumber + 1%
\let\PTB@tempa=\@empty
\let\PTB@numbers=\@empty
\loop\ifnum\@tempcnta<\@tempcntb
\protected@edef\x{%
\noexpand\g@addto@macro\noexpand\PTB@numbers{\PTB@tempa\noexpand\PTB@circled{\the\@tempcnta}}%
}
\x
%%%\show\PTB@numbers
\def\PTB@tempa{\hfill}%
\advance\@tempcnta\@ne %
\repeat
}
\newcommand*\PTB@circled[1]{\tikz[baseline=(char.base)]{%
\node[shape=circle,draw,fill=white,minimum width=1.5em,%
inner sep=0pt,draw=PTBblue,line width=.17em]
(char) {#1};}}
%\def\PTB@circled#1{#1}
\setbeamertemplate{footline}{%
\if@PTB@finalpage% special final page
\global\@PTB@finalpagefalse% right place here?
......@@ -115,23 +151,26 @@
\hskip\beamer@leftmargin
\raisebox{55\vUnit}[0pt][0pt]{\begin{minipage}[t]{\PTB@textwidth}
\if@PTB@progressbar
\ifnum\inserttotalframenumber>1 %
\PTB@prepare@numbers% --> \PTB@numbers: 1 \hfill 2 ... \hfill last"
\fi
%%%\tikz@deactivatthings
\dimen0=\PTB@textwidth
\multiply\dimen0 by \insertframenumber
\divide\dimen0 by \inserttotalframenumber
\multiply\dimen0 by \numexpr\insertframenumber - 1 %
\divide\dimen0 by \numexpr\inserttotalframenumber - 1 %
\edef\PTB@progressbarwidth{\the\dimen0}
\vskip-8\vUnit
\settowidth{\PTB@tempdima}{\,\inserttotalframenumber\,}%
\mbox{%
\begin{beamercolorbox}[wd=\PTB@textwidth,ht=17\vUnit,dp=3\vUnit]{progress bar}
\bfseries
\begin{beamercolorbox}[wd=\PTB@progressbarwidth,ht=17\vUnit,dp=3\vUnit]%
{progress bar progress} 1\hfill \insertframenumber\,
\makebox[0ex][l]{%
\PTB@tempdima=\dimexpr\PTB@progressbarwidth %
\begin{beamercolorbox}[wd=\PTB@tempdima,ht=17\vUnit,dp=3\vUnit]{progress bar progress}%
\end{beamercolorbox}%
\hfill
\settowidth{\@tempdima}{\,\inserttotalframenumber\,}%
\makebox[0pt][r]{%
\begin{beamercolorbox}[wd=\@tempdima,ht=17\vUnit,dp=3\vUnit]{progress bar progress}
\centering \,\inserttotalframenumber\,
\end{beamercolorbox}}
\end{beamercolorbox}}\\[17\vUnit]
}%
\PTB@tempdima=\dimexpr\PTB@textwidth+.5ex %
\begin{beamercolorbox}[wd=\PTB@tempdima,ht=20\vUnit,dp=0\vUnit]{progress bar numbers}%
\usebeamerfont{progress bar numbers}\PTB@numbers%
\end{beamercolorbox}}\\[8\vUnit]
\else
\includegraphics[width=\textwidth,height=20\vUnit]%
{PTB-dividing-bar.png}\\[-10\vUnit]
......
\setcounter{errorcontextlines}{100}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemePTB}[2022/08/05 v2.0.0 PTB (RN)]%
\ProvidesPackage{beamerthemePTB}[2022/08/07 v2.0.1 PTB (RN)]%
\mode<presentation>
\RequirePackage{varwidth,pict2e,relsize}
\renewcommand*\RSpercentTolerance{0}% exact values by \relscale and the like.
\RequirePackage{tikz}
\newlength\vUnit
\newlength\PTB@textwidth
\newlength\PTB@tempdima
\newlength\PTB@tempdimb
\newlength\PTB@tempdimc
\setbeamersize{text margin left=0.039\paperheight,%
text margin right=0.039\paperheight}
......@@ -22,7 +26,7 @@
\providecommand\PTB@tempc{}
\newif\if@PTB@finalpage \@PTB@finalpagefalse
\newif\if@PTB@progressbar \@PTB@progressbarfalse
\newif\if@PTB@progressbar \@PTB@progressbarfalse
% From `scrbase.sty'
\newcommand\Ifstr[2]{%
......
No preview for this file type
......@@ -17,7 +17,7 @@ Rolf~Niepraschk\inst{3} \and Karl~Jousten\inst{4}}
\inst{3}PTB~Berlin, AG~7.54, R.~001 \and \inst{4}PTB~Berlin, AG~7.54, R.~112
}
\useProgressbar % experimental ...
\useProgressbar % still experimental ...
\orgLogo{Logo754d.pdf}
\begin{document}
......@@ -175,8 +175,8 @@ Rolf~Niepraschk\inst{3} \and Karl~Jousten\inst{4}}
\endgroup
\begin{frame}
%\finalpage[name=Ellen Bogen,email=Ellen.Bogen@ptb.de,%
% phone=(030) 3481-0,location=BLN]% location=BS
\finalpage[name=Ellen Bogen,email=Ellen.Bogen@ptb.de,%
phone=(030) 3481-0,location=BLN]% location=BS
\centering\huge
Thank you for your attention!
\vspace{12ex}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment