texlive[61241] Master/texmf-dist: beamertheme-focus (7dec21)

commits+karl at tug.org commits+karl at tug.org
Tue Dec 7 22:23:55 CET 2021


Revision: 61241
          http://tug.org/svn/texlive?view=revision&revision=61241
Author:   karl
Date:     2021-12-07 22:23:55 +0100 (Tue, 07 Dec 2021)
Log Message:
-----------
beamertheme-focus (7dec21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/beamertheme-focus/README.md
    trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty
    trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty

Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-focus/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamertheme-focus/README.md	2021-12-07 21:23:39 UTC (rev 61240)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-focus/README.md	2021-12-07 21:23:55 UTC (rev 61241)
@@ -1,4 +1,4 @@
-# Focus v2.9.0
+# Focus v3.0.0
 A presentation theme for LaTeX Beamer that aims at a clean and minimalist design,
 so to minimize distractions and put the focus directly on the content.
 
@@ -69,11 +69,17 @@
 \footlineinfo{Custom footline text}
 ```
 
+For both footline styles the total frame number (shown by default) can be suppressed with:
+```latex
+\usetheme[totalframenumbering=no]{focus}
+```
+
 The footline may also be disabled globally by typing:
 ```latex
 \usetheme[numbering=none]{focus}
 ```
 
+
 Customize fonts
 ---------------
 Focus is using the [Fira fonts](https://bboxtype.com/typefaces/FiraSans/) by default.
@@ -102,7 +108,8 @@
 The following people deserve appreciation and acknowledgment for improving the template with
 additions and modifications (in alphabetical order):
 
-- Sebastian Friedl
-- Benjamin Goldman
+- [max](https://github.com/imntl)
+- [MonsieurPi](https://github.com/MonsieurPi)
+- [SFr682k](https://github.com/SFr682k)
 
 A more detailed contribution list is found [here](https://github.com/elauksap/focus-beamertheme/graphs/contributors).

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty	2021-12-07 21:23:39 UTC (rev 61240)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty	2021-12-07 21:23:55 UTC (rev 61241)
@@ -68,6 +68,9 @@
 \newlength{\focus at pbar@leftoffset}
 \newlength{\focus at pbar@rightoffset}
 
+% Comparision token for totalframenumbering.
+\def\no{no}
+
 \defbeamertemplate*{footline}{progressbar}{%
     % If not appendix.
     \ifnum\mainend<0% From package appendixnumberbeamer.
@@ -75,8 +78,13 @@
         \settowidth{\focus at pbar@leftoffset}{1}%
         \addtolength{\focus at pbar@leftoffset}{1.5em}%
         %
-        \settowidth{\focus at pbar@rightoffset}{\inserttotalframenumber}%
-        \addtolength{\focus at pbar@rightoffset}{1.5em}%
+        \ifx\beamer at focus@totalframenumbering\no%
+            \settowidth{\focus at pbar@rightoffset}{}%
+            \addtolength{\focus at pbar@rightoffset}{0.5em}%
+        \else%
+            \settowidth{\focus at pbar@rightoffset}{\inserttotalframenumber}%
+            \addtolength{\focus at pbar@rightoffset}{1.5em}%
+        \fi%
         %
         % If not title page.
         \ifnum\value{realframenumber}>0%
@@ -91,8 +99,11 @@
                     \fill[footline.bg] (\the\focus at pbar@leftoffset,0) rectangle ++(\focus at pbar@progress pt,\the\focus at pbar@height)
                                        ++(0,{-0.5*\the\focus at pbar@height}) node[anchor=east, text=footline.fg] {\strut\insertframenumber};
                     
-                    \fill[footline.bg] (\paperwidth,0) rectangle ++(-\the\focus at pbar@rightoffset,\the\focus at pbar@height)
-                                       ++(0,{-0.5*\the\focus at pbar@height}) node[anchor=west, text=footline.fg] {\strut\inserttotalframenumber};
+                    \ifx\beamer at focus@totalframenumbering\no%
+                    \else%
+                        \fill[footline.bg] (\paperwidth,0) rectangle ++(-\the\focus at pbar@rightoffset,\the\focus at pbar@height)
+                                           ++(0,{-0.5*\the\focus at pbar@height}) node[anchor=west, text=footline.fg] {\strut\inserttotalframenumber};
+                    \fi%
                 \end{tikzpicture}%
             \else%
                 \begin{tikzpicture}[inner xsep=0.5em, inner ysep=0.5ex]
@@ -100,8 +111,12 @@
                     \fill[footline.bg] (0,0) rectangle ++(\paperwidth,\the\focus at pbar@height);
                     
                     \node[anchor=east, footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut\insertframenumber};
-                    \node[footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut/};
-                    \node[anchor=west, footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut\inserttotalframenumber};
+
+                    \ifx\beamer at focus@totalframenumbering\no%
+                    \else%
+                        \node[footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut/};
+                        \node[anchor=west, footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut\inserttotalframenumber};
+                    \fi%
                 \end{tikzpicture}%
             \fi%
         \fi%
@@ -118,8 +133,13 @@
         \settowidth{\focus at pbar@leftoffset}{1}%
         \addtolength{\focus at pbar@leftoffset}{1.5em}%
         %
-        \settowidth{\focus at pbar@rightoffset}{\inserttotalframenumber}%
-        \addtolength{\focus at pbar@rightoffset}{1.5em}%
+        \ifx\beamer at focus@totalframenumbering\no%
+            \settowidth{\focus at pbar@rightoffset}{}%
+            \addtolength{\focus at pbar@rightoffset}{0.5em}%
+        \else%
+            \settowidth{\focus at pbar@rightoffset}{\inserttotalframenumber}%
+            \addtolength{\focus at pbar@rightoffset}{1.5em}%
+        \fi%
         %
         % If not title page.
         \ifnum\value{realframenumber}>0%
@@ -127,14 +147,18 @@
                 \clip (0,0) rectangle ++(\paperwidth,\the\focus at pbar@height);
                 \fill[footline.bg] (0,0) rectangle ++(\paperwidth,\the\focus at pbar@height);
 
-                \ifx\focus at footlineinfo\empty
-                \else
+                \ifx\focus at footlineinfo\empty%
+                \else%
                     \node[anchor=west, footline.fg] at ({\the\focus at pbar@leftoffset},{0.5*\focus at pbar@height}) {\focus at footlineinfo};
-                \fi
+                \fi%
 
                 \node[anchor=east, footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut\insertframenumber};
-                \node[footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut/};
-                \node[anchor=west, footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut\inserttotalframenumber};
+
+                \ifx\beamer at focus@totalframenumbering\no%
+                \else%
+                    \node[footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut/};
+                    \node[anchor=west, footline.fg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut\inserttotalframenumber};
+                \fi%
             \end{tikzpicture}%
         \fi%
     \fi%
@@ -145,6 +169,10 @@
 
 \DeclareOptionBeamer{numbering}{\def\beamer at focus@numbering{#1}}
 \ExecuteOptionsBeamer{numbering=progressbar}
+
+\DeclareOptionBeamer{totalframenumbering}{\def\beamer at focus@totalframenumbering{#1}}
+\ExecuteOptionsBeamer{totalframenumbering=yes}
+
 \ProcessOptionsBeamer
 
 \def\beamer at focus@numberingprogressbar{progressbar}
@@ -151,7 +179,10 @@
 \def\beamer at focus@numberingfullbar{fullbar}
 \def\beamer at focus@numberingnone{none}
 
+\def\beamer at focus@totalframenumberingyes{yes}
+\def\beamer at focus@totalframenumberingno{no}
 
+
 % BACKGROUND CANVAS TEMPLATES. -------------------------------------------------
 \defbeamertemplate*{background canvas}{focus}{%
     \begin{tikzpicture}

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty	2021-12-07 21:23:39 UTC (rev 61240)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty	2021-12-07 21:23:55 UTC (rev 61241)
@@ -19,7 +19,7 @@
 % along with beamerthemefocus. If not, see <http://www.gnu.org/licenses/>.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerthemefocus}[2021/07/19 v2.9.0 Focus Beamer theme]
+\ProvidesPackage{beamerthemefocus}[2021/12/07 v3.0.0 Focus Beamer theme]
 
 \mode<presentation>
 
@@ -29,6 +29,10 @@
     \PassOptionsToPackage{numbering=#1}{beamerouterthemefocus}
 }
 
+\DeclareOptionBeamer{totalframenumbering}{%
+    \PassOptionsToPackage{totalframenumbering=#1}{beamerouterthemefocus}
+}
+
 \newif\if at focus@loadfirafonts
 \@focus at loadfirafontstrue
 



More information about the tex-live-commits mailing list.