summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/beamertheme-focus/README.md12
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty45
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty2
3 files changed, 54 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/beamertheme-focus/README.md b/Master/texmf-dist/doc/latex/beamertheme-focus/README.md
index 3586a78da9a..a98aeb29d7e 100644
--- a/Master/texmf-dist/doc/latex/beamertheme-focus/README.md
+++ b/Master/texmf-dist/doc/latex/beamertheme-focus/README.md
@@ -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 @@ Alternatively, a full footline bar with the frame numbering can be shown with:
```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}
```
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>