Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 990a4b79 authored by DAMIE Marc's avatar DAMIE Marc
Browse files

Reworked the frame counter for appendix

parent d4c73b3c
No related branches found
No related tags found
No related merge requests found
......@@ -46,16 +46,14 @@
\setmonofont[Ligatures=TeX,Path=fonts/,SmallCapsFont=AlegreyaSansSC-Regular]{Inconsolata}
% frame counter
\def\minvalue(#1,#2){\ifnum #1>#2 #2\else #1\fi}
\newcounter{totalfr}
\setbeamertemplate{footline}{
\ifnum\inserttotalframenumber=1
\setcounter{totalfr}{2}
\else
\setcounter{totalfr}{\inserttotalframenumber}
\fi
\setcounter{totalfr}{\insertmainframenumber}
\hfill{
\tikz{
\filldraw[fill=inriared!20, draw=inriared!60] (0,0) -- (0.2,0) arc (0:{\value{framenumber}*(360/(\value{totalfr}-1))}:0.2) -- (0,0);
\filldraw[fill=inriared!20, draw=inriared!60] (0,0) -- (0.22,0) arc (0:{\minvalue(\value{framenumber},\value{totalfr})*(360/(\value{totalfr}))}:0.22) -- (0,0);
\node at (0,0) {\normalsize \color{inriagray}\scriptsize{\textbf\insertframenumber}};
}
}
......
......@@ -73,4 +73,9 @@
\framecard{\hugetext{Questions?}}
\appendix
\begin{frame}{Back-up slides}
Thanks to the \texttt{appendix} command, the back-up slides will be excluded from the total frame count in the bottom right counter.
\end{frame}
\end{document}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment