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

progressbar: first try

parent 166f07cc
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,10 @@ ...@@ -33,7 +33,10 @@
\setbeamercolor{block title alerted}{fg=PTBalert} \setbeamercolor{block title alerted}{fg=PTBalert}
\setbeamercolor{alerted text}{fg=PTBalert} \setbeamercolor{alerted text}{fg=PTBalert}
\setbeamercolor{block title example}{fg=PTBexample} \setbeamercolor{block title example}{fg=PTBexample}
\setbeamercolor{progress bar}{bg=PTBblue!60,fg=white}
\setbeamercolor{progress bar progress}{bg=PTBblue,fg=white}
\mode<all> \mode<all>
......
\NeedsTeXFormat{LaTeX2e}[2005/12/01] \NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{beamerouterthemePTB}[2022/08/05 v2.0.0 PTB outer theme (RN)]% \ProvidesPackage{beamerouterthemePTB}[2022/08/05 v2.1.0 PTB outer theme (RN)]%
\mode<presentation> \mode<presentation>
...@@ -114,13 +114,33 @@ ...@@ -114,13 +114,33 @@
\leavevmode \leavevmode
\hskip\beamer@leftmargin \hskip\beamer@leftmargin
\raisebox{55\vUnit}[0pt][0pt]{\begin{minipage}[t]{\PTB@textwidth} \raisebox{55\vUnit}[0pt][0pt]{\begin{minipage}[t]{\PTB@textwidth}
\includegraphics[width=\textwidth,height=20\vUnit]% \if@PTB@progressbar
{PTB-dividing-bar.png}\\[-10\vUnit] \dimen0=\PTB@textwidth
\bfseries\normalcolor \multiply\dimen0 by \insertframenumber
\fontsize{18.91\vUnit}{22.69\vUnit}\selectfont \divide\dimen0 by \inserttotalframenumber
Physikalisch-Technische Bundesanstalt\,~\raisebox{.15ex}[0pt][0pt]% \edef\PTB@progressbarwidth{\the\dimen0}
{\textcolor{PTBblue}{\rule{1ex}{1ex}}}\,~Braunschweig und Berlin \hfill \mbox{%
\mdseries \translate{NMI} \\[.5ex] \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\,
\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]
\else
\includegraphics[width=\textwidth,height=20\vUnit]%
{PTB-dividing-bar.png}\\[-10\vUnit]
\bfseries\normalcolor
\fontsize{18.91\vUnit}{22.69\vUnit}\selectfont
Physikalisch-Technische Bundesanstalt\,~\raisebox{.15ex}[0pt][0pt]%
{\textcolor{PTBblue}{\rule{1ex}{1ex}}}\,~Braunschweig und Berlin \hfill
\mdseries \translate{NMI} \\[5.71178245537\vUnit]
\fi
\color{PTBgray} \color{PTBgray}
\PTB@footer@components% normal or reverse \PTB@footer@components% normal or reverse
\end{minipage}} \end{minipage}}
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
\providecommand\PTB@tempb{} \providecommand\PTB@tempb{}
\providecommand\PTB@tempc{} \providecommand\PTB@tempc{}
\newif\if@PTB@finalpage \@PTB@finalpagefalse \newif\if@PTB@finalpage \@PTB@finalpagefalse
\newif\if@PTB@progressbar \@PTB@progressbarfalse
% From `scrbase.sty' % From `scrbase.sty'
\newcommand\Ifstr[2]{% \newcommand\Ifstr[2]{%
...@@ -103,9 +104,12 @@ ...@@ -103,9 +104,12 @@
\setkeys{PTB}{#1}% \setkeys{PTB}{#1}%
\global\@PTB@finalpagetrue \global\@PTB@finalpagetrue
} }
\newcommand*\useProgressbar{%
\global\@PTB@progressbartrue
}
\normalHeader \normalHeader
\normalFooter \normalFooter
\hypersetup{% \hypersetup{%
,bookmarks ,bookmarks
......
No preview for this file type
...@@ -17,6 +17,7 @@ Rolf~Niepraschk\inst{3} \and Karl~Jousten\inst{4}} ...@@ -17,6 +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 \inst{3}PTB~Berlin, AG~7.54, R.~001 \and \inst{4}PTB~Berlin, AG~7.54, R.~112
} }
\useProgressbar % experimental ...
\orgLogo{Logo754d.pdf} \orgLogo{Logo754d.pdf}
\begin{document} \begin{document}
...@@ -174,8 +175,8 @@ Rolf~Niepraschk\inst{3} \and Karl~Jousten\inst{4}} ...@@ -174,8 +175,8 @@ Rolf~Niepraschk\inst{3} \and Karl~Jousten\inst{4}}
\endgroup \endgroup
\begin{frame} \begin{frame}
\finalpage[name=Ellen Bogen,email=Ellen.Bogen@ptb.de,% %\finalpage[name=Ellen Bogen,email=Ellen.Bogen@ptb.de,%
phone=(030) 3481-0,location=BLN]% location=BS % phone=(030) 3481-0,location=BLN]% location=BS
\centering\huge \centering\huge
Thank you for your attention! Thank you for your attention!
\vspace{12ex} \vspace{12ex}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment