diff options
author | Karl Berry <karl@freefriends.org> | 2020-04-16 21:01:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-04-16 21:01:46 +0000 |
commit | 50c55c1c30db81e8e314559953aa6306055660d8 (patch) | |
tree | 736ea3866879cbc7d7492e1336ccdc6f67be9ba4 /Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty | |
parent | 131df7a1e58d7bd6e1f436b1a0542680f6a9f130 (diff) |
beamertheme-focus (16apr20)
git-svn-id: svn://tug.org/texlive/trunk@54772 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty index 26afe6799ef..bbf893eeaa1 100644 --- a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty +++ b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty @@ -1,4 +1,4 @@ -% Copyright (C) 2018-2019 Pasquale Claudio Africa and the LaTeX community. +% Copyright (C) 2018-2020 Pasquale Claudio Africa and the LaTeX community. % A full list of contributors can be found at % % https://github.com/elauksap/focus-beamertheme @@ -37,11 +37,12 @@ \RequirePackage{etoolbox} % \BeforeBeginEnvironment. \RequirePackage{tikz} +\newcounter{realframenumber} % FRAMETITLE TEMPLATES. -------------------------------------------------------- \defbeamertemplate*{frametitle}{focus}{% % If not title page. - \ifnum\value{framenumber}>0% + \ifnum\value{realframenumber}>0% \vspace{-1pt}% \begin{beamercolorbox}[wd=\paperwidth,leftskip=0.55cm,rightskip=0.55cm,sep=0.2cm]{frametitle}% \strut\insertframetitle\strut% @@ -52,7 +53,7 @@ % Plain header. \defbeamertemplate*{frametitle}{plain}{% % If not title page. - \ifnum\value{framenumber}>0% + \ifnum\value{realframenumber}>0% \vspace{-1pt}% \begin{beamercolorbox}[wd=\paperwidth,leftskip=0.55cm,rightskip=0.55cm,sep=0.2cm,ignorebg]{frametitle}% \strut% @@ -78,8 +79,8 @@ \addtolength{\focus@pbar@rightoffset}{1.5em}% % % If not title page. - \ifnum\c@framenumber>0% - \ifnum\c@framenumber<\inserttotalframenumber% + \ifnum\value{realframenumber}>0% + \ifnum\value{framenumber}<\inserttotalframenumber% \begin{tikzpicture}[inner xsep=0.5em, inner ysep=0.5ex]\usebeamerfont{footline} \pgfmathsetmacro{\focus@pbar@progress}% {(\paperwidth-\focus@pbar@leftoffset-\focus@pbar@rightoffset)*(\insertframenumber/\inserttotalframenumber)} @@ -119,7 +120,7 @@ \addtolength{\focus@pbar@rightoffset}{1.5em}% % % If not title page. - \ifnum\c@framenumber>0% + \ifnum\value{realframenumber}>0% \begin{tikzpicture}[inner xsep=0.5em, inner ysep=0.5ex] \clip (0,0) rectangle ++(\paperwidth,\the\focus@pbar@height); \fill[footline.bg] (0,0) rectangle ++(\paperwidth,\the\focus@pbar@height); @@ -169,6 +170,7 @@ % HOOKS FOR CREATING FRAMES. --------------------------------------------------- \BeforeBeginEnvironment{frame}{% + \stepcounter{realframenumber} \setbeamertemplate{background canvas}[focus]% \setbeamertemplate{frametitle}[focus]% % |