Commit 7ba917a4 authored by Andreas Herten's avatar Andreas Herten

First implementation of PGF-key'ed FZJ progress bar

parent 56fbdaa3
...@@ -110,57 +110,9 @@ ...@@ -110,57 +110,9 @@
\setlength{\fzj@progressbar@height}{#1}% \setlength{\fzj@progressbar@height}{#1}%
}, },
% %
% count overlays/.is choice,
% count overlays/.default=no,
% count overlays/no/.code={%
% \renewcommand\fzj@progressbar@end\inserttotalframenumber%
% \renewcommand\fzj@progressbar@current\insertframenumber%
% \fzj@progressbar@countoverlaysfalse%
% },
% count overlays/yes/.code={%
% \renewcommand\fzj@progressbar@end\insertdocumentendpage%
% \renewcommand\fzj@progressbar@current\insertpagenumber%
% \fzj@progressbar@countoverlaystrue%
% },
count overlays/.is if=fzj@progressbar@countoverlays, count overlays/.is if=fzj@progressbar@countoverlays,
%
% count appendix/.is choice,
% count appendix/.default=no,
% count appendix/no/.code={%
% \fzj@progressbar@countappendixfalse},
% count appendix/yes/.code={%
% \iffzj@progressbar@countoverlays
% \renewcommand\fzj@progressbar@end{\beamer@startpageofappendix - 1}%
% \fzj@progressbar@countappendixtrue
% \else
% % not implemented
% \fi
% },
count appendix/.is if=fzj@progressbar@countappendix, count appendix/.is if=fzj@progressbar@countappendix,
%
% count titlepage/.is choice,
% count titlepage/.default=no,
% count titlepage/no/.code={%
% \renewcommand{\fzj@progressbar@titlepagereduction}{0}%
% \fzj@progressbar@counttitlepagefalse
% },
% count titlepage/yes/.code={%
% \renewcommand{\fzj@progressbar@titlepagereduction}{1}%
% \fzj@progressbar@counttitlepagetrue
% },
count titlepage/.is if=fzj@progressbar@counttitlepage, count titlepage/.is if=fzj@progressbar@counttitlepage,
%
invert appendix/.is choice,
invert appendix/.default=no,
invert appendix/no/.code={},
invert appendix/yes/.code={%
% % \ifnum\insertpagenumber>\beamer@startpageofappendix
% \renewcommand{\fzj@progressbar@titlepagereduction}{\ifnum\insertpagenumber>\beamer@startpageofappendix 0\else\fi}
% \renewcommand{\fzj@progressbar@end}{\ifnum\insertpagenumber>\beamer@startpageofappendix \insertdocumentendpage\else\fi}
% \pgfmathsetmacro{\fzj@progressbar@current}{\ifnum\insertpagenumber>\beamer@startpageofappendix \insertpagenumber-\beamer@startpageofappendix\else\fi}
% \else
% \fi
},
invert appendix/.is if=fzj@progressbar@invertappendix invert appendix/.is if=fzj@progressbar@invertappendix
} }
...@@ -172,10 +124,6 @@ ...@@ -172,10 +124,6 @@
\newcommand\fzj@progressbar@titlepagereduction@current{0}% \newcommand\fzj@progressbar@titlepagereduction@current{0}%
\newcommand\fzj@progressbar@titlepagereduction@end{0}% \newcommand\fzj@progressbar@titlepagereduction@end{0}%
\pgfkeys{/beamerfzj/progress bar/height}% \pgfkeys{/beamerfzj/progress bar/height}%
% % \pgfkeys{/beamerfzj/progress bar/count overlays}
% \pgfkeys{/beamerfzj/progress bar/count appendix}
% \pgfkeys{/beamerfzj/progress bar/count titlepage}
% \pgfkeys{/beamerfzj/progress bar/invert appendix}
\setbeamertemplate{progress bar footer}{ \setbeamertemplate{progress bar footer}{
%% %%
%% CHECK OPTIONS %% CHECK OPTIONS
......
\documentclass[aspectratio=169]{beamer}
\usetheme{Juelich}
\title{Progress Bar Configuration}
\subtitle{See all the options for Progress Bar}
\author{Andreas Herten}
\date{\today}
\institute{JSC}
\fzjset{title page=text}
\fzjset{title=allcaps}
\fzjset{subtitle=allcaps}
\fzjset{part=allcaps}
\fzjset{frametitle=regular}
\fzjset{section page=text}
%% Use FZJ Progress Bar
\setbeamertemplate{progressbar}[visible]
%% Adapt height
\fzjset{progress bar/height=2ex}
%% Rather count overlays not frames
\fzjset{progress bar/count overlays=true}
%% Title page should not have a progress bar
\fzjset{progress bar/count titlepage=false}
%% Let the progress bar end when the appendix starts
\fzjset{progress bar/count appendix=false}
%% If we're in the appendix, the progress bar should shrink from right to left
\fzjset{progress bar/invert appendix=true}
\newcommand{\printpagesinfo}{%
Frame \insertframenumber{} of \inserttotalframenumber{}
Page \insertpagenumber{} of \insertdocumentendpage{}
}
\begin{document}
\maketitle
\begin{frame}
\frametitle{First Slide}
\printpagesinfo
Orion's sword. Rogue extraordinary claims require extraordinary evidence birth? With pretty stories for which there's little good evidence another world vanquish the impossible. Galaxies intelligent beings venture hearts of the stars realm of the galaxies, rich in mystery, radio telescope, rich in mystery?
\end{frame}
{\setbeamercolor{progressbar}{fg=fzjgreen}
\begin{frame}
\frametitle{Second Slide}
\framesubtitle<1>{First part}
\framesubtitle<2>{Second part}
\printpagesinfo
Brain is the seed of intelligence! Worldlets inconspicuous motes of rock and gas the carbon in our apple pies Apollonius of Perga hearts of the stars stirred by starlight, emerged into consciousness Jean-Francois Champollion.
Overlay
\only<2->{Cosmic fugue network of wormholes shores of the cosmic ocean tingling of the spine, radio telescope extraordinary claims require extraordinary evidence.}
% \makeatletter\beamerfzj@pb@counter\makeatother
\end{frame}
}
\begin{frame}
\frametitle{Third Slide}
\printpagesinfo
\begin{itemize}[<+->]
\item First bullet
\item Second bullet
\item Third bullet
\item Fourth bullet
\item Done
\end{itemize}
\end{frame}
\appendix
\begin{frame}
\frametitle{First Appendix Slide}
\printpagesinfo
Capt. Malcolm Reynolds: Ah, hell, Shepherd, I ain't looking for help from on high. That's a long wait for a train don't come. Shepherd Book: Why when I talk about belief, why do you always assume I'm talking about God?
The Operative: [to Mal] You cannot make me angry. Inara Serra: Please, spend an hour with him!
\end{frame}
\begin{frame}
\frametitle{Second Appendix Slide}
\printpagesinfo
\begin{itemize}
\item<+-> Carson Beckett M. D.: [a parasite has attached itself to Sheppard's neck, paralyzing him] I'm told you have something of a cling-on.\\
Maj. John Sheppard: That's funny.
\item<+-> Dr. Rodney McKay: I'm not crazy. I just have another consciousness in my brain. Maj.\\
John Sheppard: So he just looks crazy.\\
Dr. Rodney McKay: I'm sure I do, but only because Dr. Fumbles McStupid over here was in way over his head!
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Third Appendix Slide}
\printpagesinfo
Course if I was one of them – these people that you seem to think are your enemies – what would I do? Well, there’d be no balloon. So I’d draw a map to a real secluded place, like a cave or some underbrush, good place for a trap. An ambush. And when your friends got there, a bunch of my people would be waiting for ‘em. Then they’d use them to trade for me…I guess it’s a good thing I’m not one of them huh? You g1uys got any milk
\end{frame}
\end{document}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment