From a1f21689acf2d63ab8b813a55c5bf4374a06d964 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 18 Nov 2020 03:00:45 +0000 Subject: CTAN sync 202011180300 --- .../contrib/beamer-contrib/themes/beamertheme-focus/README.md | 9 +++++++-- .../themes/beamertheme-focus/beamerouterthemefocus.sty | 8 +++++++- .../beamer-contrib/themes/beamertheme-focus/beamerthemefocus.sty | 2 +- .../beamer-contrib/themes/beamertheme-focus/focus-demo.tex | 3 +++ 4 files changed, 18 insertions(+), 4 deletions(-) (limited to 'macros/latex/contrib/beamer-contrib') diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/README.md b/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/README.md index 562ad628d2..9c81eb1312 100644 --- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/README.md +++ b/macros/latex/contrib/beamer-contrib/themes/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/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/beamerouterthemefocus.sty b/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/beamerouterthemefocus.sty index 88e82d3c71..08f8b80fad 100644 --- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/beamerouterthemefocus.sty +++ b/macros/latex/contrib/beamer-contrib/themes/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/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/beamerthemefocus.sty b/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/beamerthemefocus.sty index 593cfa0914..ea529fd03e 100644 --- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/beamerthemefocus.sty +++ b/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/beamerthemefocus.sty @@ -19,7 +19,7 @@ % along with beamerthemefocus. If not, see . \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerthemefocus}[2020/10/28 v2.7.1 Focus Beamer theme] +\ProvidesPackage{beamerthemefocus}[2020/11/17 v2.8 Focus Beamer theme] \mode diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/focus-demo.tex b/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/focus-demo.tex index c47af62f20..c696f525f6 100644 --- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-focus/focus-demo.tex +++ b/macros/latex/contrib/beamer-contrib/themes/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 -- cgit v1.2.3