diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-09 21:04:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-09 21:04:38 +0000 |
commit | 65ced2bb364c8d8a073845d6d98569f24c24f43c (patch) | |
tree | 5875eb0674109c5e82c75f96c8bf34657c573d1c /Master/texmf-dist/tex/latex/beamertheme-focus | |
parent | 054b7700843668042154abd67bb829067df98998 (diff) |
beamertheme-focus (9dec21)
git-svn-id: svn://tug.org/texlive/trunk@61258 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamertheme-focus')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty | 45 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty | 2 |
2 files changed, 45 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty index 0f092439770..e65db21774d 100644 --- a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty +++ b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty @@ -164,6 +164,44 @@ \fi% } +\defbeamertemplate{footline}{minimal}{% + % If not appendix. + \ifnum\mainend<0% From package appendixnumberbeamer. + % + \settowidth{\focus@pbar@leftoffset}{1}% + \addtolength{\focus@pbar@leftoffset}{1.5em}% + % + \ifx\beamer@focus@totalframenumbering\no% + \settowidth{\focus@pbar@rightoffset}{}% + \addtolength{\focus@pbar@rightoffset}{0.5em}% + \else% + \settowidth{\focus@pbar@rightoffset}{\inserttotalframenumber}% + \addtolength{\focus@pbar@rightoffset}{1.5em}% + \fi% + % + % If not title page. + \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.fg] (0,0) rectangle ++(\paperwidth,\the\focus@pbar@height); + + \ifx\focus@footlineinfo\empty% + \else% + \node[anchor=west, footline.bg] at ({\the\focus@pbar@leftoffset},{0.5*\focus@pbar@height}) {\focus@footlineinfo}; + \fi% + + \node[anchor=east, footline.bg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut\insertframenumber}; + + \ifx\beamer@focus@totalframenumbering\no% + \else% + \node[footline.bg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut/}; + \node[anchor=west, footline.bg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut\inserttotalframenumber}; + \fi% + \end{tikzpicture}% + \fi% + \fi% +} + % Empty footline. \defbeamertemplate{footline}{none}{} @@ -177,6 +215,7 @@ \def\beamer@focus@numberingprogressbar{progressbar} \def\beamer@focus@numberingfullbar{fullbar} +\def\beamer@focus@numberingminimal{minimal} \def\beamer@focus@numberingnone{none} \def\beamer@focus@totalframenumberingyes{yes} @@ -220,7 +259,11 @@ \ifx\beamer@focus@numbering\beamer@focus@numberingfullbar% \setbeamertemplate{footline}[fullbar]% \else% - \setbeamertemplate{footline}[none]% + \ifx\beamer@focus@numbering\beamer@focus@numberingminimal% + \setbeamertemplate{footline}[minimal]% + \else% + \setbeamertemplate{footline}[none]% + \fi \fi% \fi% % diff --git a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty index 70effd63864..60fe0d644a2 100644 --- a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty +++ b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty @@ -19,7 +19,7 @@ % along with beamerthemefocus. If not, see <http://www.gnu.org/licenses/>. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerthemefocus}[2021/12/07 v3.0.0 Focus Beamer theme] +\ProvidesPackage{beamerthemefocus}[2021/12/08 v3.1.0 Focus Beamer theme] \mode<presentation> |