texlive[61258] Master/texmf-dist: beamertheme-focus (9dec21)

commits+karl at tug.org commits+karl at tug.org
Thu Dec 9 22:04:38 CET 2021


Revision: 61258
          http://tug.org/svn/texlive?view=revision&revision=61258
Author:   karl
Date:     2021-12-09 22:04:38 +0100 (Thu, 09 Dec 2021)
Log Message:
-----------
beamertheme-focus (9dec21)

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-09 21:04:19 UTC (rev 61257)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-focus/README.md	2021-12-09 21:04:38 UTC (rev 61258)
@@ -1,4 +1,4 @@
-# Focus v3.0.0
+# Focus v3.1.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.
 
@@ -63,13 +63,19 @@
 ```latex
 \usetheme[numbering=fullbar]{focus}
 ```
-In such case, an optional text to be printed on the left side of the footline
+
+The `minimal` style just prints the frame numbering without any footline background:
+```latex
+\usetheme[numbering=minimal]{focus}
+```
+
+In the `fullbar` and `minimal` cases, an optional text to be printed on the left side of the footline
 can be customized with:
 ```latex
 \footlineinfo{Custom footline text}
 ```
 
-For both footline styles the total frame number (shown by default) can be suppressed with:
+For all footline styles the total frame number (shown by default) can be suppressed with:
 ```latex
 \usetheme[totalframenumbering=no]{focus}
 ```

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty	2021-12-09 21:04:19 UTC (rev 61257)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty	2021-12-09 21:04:38 UTC (rev 61258)
@@ -164,6 +164,44 @@
     \fi%
 }
 
+\defbeamertemplate{footline}{minimal}{%
+    % If not appendix.
+    \ifnum\mainend<0% From package appendixnumberbeamer.
+        %
+        \settowidth{\focus at pbar@leftoffset}{1}%
+        \addtolength{\focus at pbar@leftoffset}{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%
+        \begin{tikzpicture}[inner xsep=0.5em, inner ysep=0.5ex]
+            \clip (0,0) rectangle ++(\paperwidth,\the\focus at pbar@height);
+            \fill[footline.fg] (0,0) rectangle ++(\paperwidth,\the\focus at pbar@height);
+
+            \ifx\focus at footlineinfo\empty%
+            \else%
+                \node[anchor=west, footline.bg] at ({\the\focus at pbar@leftoffset},{0.5*\focus at pbar@height}) {\focus at footlineinfo};
+            \fi%
+
+            \node[anchor=east, footline.bg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut\insertframenumber};
+
+            \ifx\beamer at focus@totalframenumbering\no%
+            \else%
+                \node[footline.bg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut/};
+                \node[anchor=west, footline.bg] at ({\paperwidth-\the\focus at pbar@rightoffset},{0.5*\focus at pbar@height}) {\strut\inserttotalframenumber};
+            \fi%
+        \end{tikzpicture}%
+        \fi%
+    \fi%
+}
+
 % Empty footline.
 \defbeamertemplate{footline}{none}{}
 
@@ -177,6 +215,7 @@
 
 \def\beamer at focus@numberingprogressbar{progressbar}
 \def\beamer at focus@numberingfullbar{fullbar}
+\def\beamer at focus@numberingminimal{minimal}
 \def\beamer at focus@numberingnone{none}
 
 \def\beamer at focus@totalframenumberingyes{yes}
@@ -220,7 +259,11 @@
             \ifx\beamer at focus@numbering\beamer at focus@numberingfullbar%
                 \setbeamertemplate{footline}[fullbar]%
             \else%
-                \setbeamertemplate{footline}[none]%
+                \ifx\beamer at focus@numbering\beamer at focus@numberingminimal%
+                    \setbeamertemplate{footline}[minimal]%
+                \else%
+                    \setbeamertemplate{footline}[none]%
+                \fi
             \fi%
         \fi%
         %

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty	2021-12-09 21:04:19 UTC (rev 61257)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty	2021-12-09 21:04:38 UTC (rev 61258)
@@ -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>
 



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