Commit 722ba97c authored by Andreas Herten's avatar Andreas Herten

Add progress bar option for hide/show in handout and trans mode

parent 7ba917a4
......@@ -228,12 +228,6 @@
\defbeamertemplatealias{footline}{default}{visible}
% handout and trans mode settings
\only<handout| trans>{%
% disable progressbar
\setbeamertemplate{progressbar}[invisible]
}
%------------------------------------------------
% background canvas
%------------------------------------------------
......
......@@ -109,11 +109,25 @@
height/.code={%
\setlength{\fzj@progressbar@height}{#1}%
},
%
count overlays/.is if=fzj@progressbar@countoverlays,
count appendix/.is if=fzj@progressbar@countappendix,
count titlepage/.is if=fzj@progressbar@counttitlepage,
invert appendix/.is if=fzj@progressbar@invertappendix
invert appendix/.is if=fzj@progressbar@invertappendix,
% show in handout/.is if=fzj@progressbar@show@inhandout,
show in handout/.is choice,
show in handout/false/.code={
\only<handout>{\setbeamertemplate{progressbar}[invisible]}
},
show in handout/true/.code={
\only<handout>{\setbeamertemplate{progressbar}[visible]}
},
show in trans/.is choice,
show in trans/false/.code={
\only<trans>{\setbeamertemplate{progressbar}[invisible]}
},
show in trans/true/.code={
\only<trans>{\setbeamertemplate{progressbar}[visible]}
},
}
......@@ -124,6 +138,8 @@
\newcommand\fzj@progressbar@titlepagereduction@current{0}%
\newcommand\fzj@progressbar@titlepagereduction@end{0}%
\pgfkeys{/beamerfzj/progress bar/height}%
\pgfkeys{/beamerfzj/progress bar/show in handout=false}%
\pgfkeys{/beamerfzj/progress bar/show in trans=false}%
\setbeamertemplate{progress bar footer}{
%%
%% CHECK OPTIONS
......
No preview for this file type
......@@ -26,7 +26,11 @@
\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}
%% Show the progress bar in handout / trans mode (default: false)
\fzjset{progress bar/show in handout=true}
\fzjset{progress bar/show in trans=true}
% \only<handout>{\setbeamertemplate{progressbar}[invisible]}
\newcommand{\printpagesinfo}{%
Frame \insertframenumber{} of \inserttotalframenumber{}
......
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