summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-11-18 22:04:44 +0000
committerKarl Berry <karl@freefriends.org>2020-11-18 22:04:44 +0000
commita81dc8da20974ac68df068de6e67b801459a693b (patch)
treea773f6e676c65a321a1f16c4f8277e5e470141bd /Master
parente76b4836b596e047960f65428fdf938ea44f6423 (diff)
beamertheme-focus (18nov20)
git-svn-id: svn://tug.org/texlive/trunk@56957 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/beamertheme-focus/README.md9
-rw-r--r--Master/texmf-dist/doc/latex/beamertheme-focus/focus-demo.tex3
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty8
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty2
4 files changed, 18 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/beamertheme-focus/README.md b/Master/texmf-dist/doc/latex/beamertheme-focus/README.md
index 562ad628d2c..9c81eb1312e 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 v2.7.1
+# Focus v2.8
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,8 +63,13 @@ 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
+can be customized with:
+```latex
+\footlineinfo{Custom footline text}
+```
-The footline may also be disabled by typing:
+The footline may also be disabled globally by typing:
```latex
\usetheme[numbering=none]{focus}
```
diff --git a/Master/texmf-dist/doc/latex/beamertheme-focus/focus-demo.tex b/Master/texmf-dist/doc/latex/beamertheme-focus/focus-demo.tex
index c47af62f202..c696f525f69 100644
--- a/Master/texmf-dist/doc/latex/beamertheme-focus/focus-demo.tex
+++ b/Master/texmf-dist/doc/latex/beamertheme-focus/focus-demo.tex
@@ -11,6 +11,9 @@
\institute{Institute Name \\ Institute Address}
\date{dd mm yyyy}
+% Footline info is printed only if [numbering=fullbar].
+%\footlineinfo{Custom footline text}
+
\begin{document}
\begin{frame}
\maketitle
diff --git a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty
index 88e82d3c713..08f8b80fadf 100644
--- a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty
+++ b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty
@@ -109,6 +109,7 @@
}
% Full bar footline.
+\def\footlineinfo#1{\def\focus@footlineinfo{#1}}
\defbeamertemplate{footline}{fullbar}{%
% If not appendix.
\ifnum\mainend<0% From package appendixnumberbeamer.
@@ -124,7 +125,12 @@
\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);
-
+
+ \ifx\focus@footlineinfo\empty
+ \else
+ \node[anchor=west, footline.fg] at ({\the\focus@pbar@leftoffset},{0.5*\focus@pbar@height}) {\focus@footlineinfo};
+ \fi
+
\node[anchor=east, footline.fg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut\insertframenumber};
\node[footline.fg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut/};
\node[anchor=west, footline.fg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut\inserttotalframenumber};
diff --git a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty
index 593cfa0914a..ea529fd03ea 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}[2020/10/28 v2.7.1 Focus Beamer theme]
+\ProvidesPackage{beamerthemefocus}[2020/11/17 v2.8 Focus Beamer theme]
\mode<presentation>