...
 
Commits (2)
......@@ -213,7 +213,7 @@
%------------------------------------------------
\defbeamertemplate{progressbar}{visible}
{%
\tlap{\progressbar@progressbar}
\usebeamertemplate*{progress bar footer}
}
\defbeamertemplate*{progressbar}{invisible}{}
......
% Latex-Beamer Template Research Centre Juelich
% version 17.12
% version 18.08
% please report any problems to i.kabadshow@fz-juelich.de
% this version does support pdflatex, xelatex and lualatex
%
......@@ -10,10 +10,11 @@
\RequirePackage{calc}
\RequirePackage{textcase}
\usetikzlibrary{calc}
\usetikzlibrary{external}
\ifluatex
\RequirePackage{microtype}
\RequirePackage[no-math]{fontspec}
\RequirePackage{fontspec}
\setmainfont{LiberationSans}
\setsansfont{LiberationSans}
\setmonofont{LiberationMono}
......@@ -91,27 +92,26 @@
% define progressbar
\makeatletter
\def\progressbar@progressbar{} % the progress bar
\newcount\progressbar@tmpcounta% auxiliary counter
\newcount\progressbar@tmpcountb% auxiliary counter
\newdimen\progressbar@pbht %progressbar height
\newdimen\progressbar@pbwd %progressbar width
\newdimen\progressbar@tmpdim % auxiliary dimension
\progressbar@pbwd=\paperwidth
\progressbar@pbht=0.2ex
\def\progressbar@progressbar{%
\progressbar@tmpcounta=\insertframenumber
\progressbar@tmpcountb=\inserttotalframenumber
\progressbar@tmpdim=\progressbar@pbwd
\divide\progressbar@tmpdim by 128
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
\divide\progressbar@tmpdim by \progressbar@tmpcountb
\multiply\progressbar@tmpdim by 128
\begin{tikzpicture}
\draw[draw=none,fill=fzjblue] %
(0pt, 0pt) rectangle ++ (\progressbar@tmpdim, \progressbar@pbht);
\end{tikzpicture}%
\newlength{\fzj@progressinheadfoot}
\newlength{\fzj@progressinheadfoot@linewidth}
\setlength{\fzj@progressinheadfoot@linewidth}{0.4pt}
\setbeamertemplate{progress bar footer}{
\nointerlineskip
\setlength{\fzj@progressinheadfoot}{%
\paperwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}%
\begin{beamercolorbox}[wd=\paperwidth]{progress bar footer}
\tikzset{external/export next=false}%
\begin{tikzpicture}
\fill[fg] (0,0) rectangle (\fzj@progressinheadfoot, \fzj@progressinheadfoot@linewidth);
\end{tikzpicture}%
\end{beamercolorbox}
}
% make sure we have a large number of total slided before the first run to keep the frame/total frame ratio below 1
% if your slide deck has more than 300 slides, you might increase the number below
% after the second latex run the totalframenumber will be read correctly from the .aux file
\def\inserttotalframenumber{300}
\makeatother
\documentclass[t]{beamer}
\usetheme{Juelich}
\usepackage{calc}
\title{Test for Very Long Documents}
\subtitle{Large numbers might break computation}
......