texlive[48382] Master/texmf-dist: beamertheme-focus (9aug18)

commits+karl at tug.org commits+karl at tug.org
Thu Aug 9 22:57:42 CEST 2018


Revision: 48382
          http://tug.org/svn/texlive?view=revision&revision=48382
Author:   karl
Date:     2018-08-09 22:57:42 +0200 (Thu, 09 Aug 2018)
Log Message:
-----------
beamertheme-focus (9aug18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/beamertheme-focus/README.md
    trunk/Master/texmf-dist/doc/latex/beamertheme-focus/demo-screenshots/demo-typeset.jpg
    trunk/Master/texmf-dist/doc/latex/beamertheme-focus/demo.pdf
    trunk/Master/texmf-dist/doc/latex/beamertheme-focus/demo.tex
    trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamercolorthemefocus.sty
    trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerfontthemefocus.sty
    trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty
    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	2018-08-09 09:18:27 UTC (rev 48381)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-focus/README.md	2018-08-09 20:57:42 UTC (rev 48382)
@@ -1,4 +1,4 @@
-# Focus
+# Focus v2.2
 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.
 

Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-focus/demo-screenshots/demo-typeset.jpg
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-focus/demo.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-focus/demo.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamertheme-focus/demo.tex	2018-08-09 09:18:27 UTC (rev 48381)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-focus/demo.tex	2018-08-09 20:57:42 UTC (rev 48382)
@@ -93,7 +93,32 @@
                 \end{description}
         \end{columns}
     \end{frame}
-
+\setbeamertemplate{caption}[numbered]
+    \begin{frame}{Figures and Tables}
+        \begin{columns}
+            \column{0.4\textwidth}
+                \begin{figure}
+                    \centering
+                    \includegraphics{focuslogo.pdf}
+                    \caption{Figure caption.}
+                    \label{fig:focuslogo}
+                \end{figure}
+                
+            \column{0.6\textwidth}
+                \begin{table}
+                    \centering
+                    \begin{tabular}{rcc}
+                         & Heading 1 & Heading 2 \\\hline
+                        Row 1 & \(v_{11}\) & \(v_{12}\) \\
+                        Row 2 & \(v_{21}\) & \(v_{22}\) \\
+                        Row 3 & \(v_{31}\) & \(v_{32}\) \\
+                    \end{tabular}
+                    \caption{Table caption.}
+                    \label{tab:demo}
+                \end{table}
+        \end{columns}
+    \end{frame}
+    
     \begin{frame}[focus]
         Thanks for using \textbf{Focus}!
     \end{frame}

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamercolorthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamercolorthemefocus.sty	2018-08-09 09:18:27 UTC (rev 48381)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamercolorthemefocus.sty	2018-08-09 20:57:42 UTC (rev 48382)
@@ -18,6 +18,8 @@
 
 \mode<presentation>
 
+
+% DEFINE COLORS. ---------------------------------------------------------------
 \definecolor{main}{RGB}{64, 64, 64}
 \definecolor{background}{RGB}{239, 239, 239}
 
@@ -25,6 +27,7 @@
 \definecolor{example}{RGB}{0, 110, 0}
 
 
+% SET COLORS. ------------------------------------------------------------------
 \setbeamercolor{normal text}{fg=main, bg=background}
 \setbeamercolor{alerted text}{fg=alert}
 \setbeamercolor{example text}{fg=example}
@@ -52,6 +55,8 @@
 \setbeamercolor{description item}{fg=main!70!black}
 \setbeamercolor{description subitem}{fg=main!70!black}
 
+\setbeamercolor{caption name}{fg=main}
+
 \setbeamercolor{section in toc}{fg=main}
 \setbeamercolor{subsection in toc}{fg=main}
 \setbeamercolor{section number projected}{bg=main}

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerfontthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerfontthemefocus.sty	2018-08-09 09:18:27 UTC (rev 48381)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerfontthemefocus.sty	2018-08-09 20:57:42 UTC (rev 48382)
@@ -18,6 +18,8 @@
 
 \mode<presentation>
 
+
+% SET FONTS. -------------------------------------------------------------------
 \setbeamerfont{title}{size=\huge, shape=\scshape\bfseries}
 \setbeamerfont{subtitle}{size=\Large, shape=\scshape, parent=structure}
 \setbeamerfont{author}{size=\Large, shape=\scshape}
@@ -32,6 +34,10 @@
 
 \setbeamerfont{focusframe}{size=\huge, shape=\scshape}
 
+\setbeamerfont{description item}{shape=\bfseries}
+
+\setbeamerfont{caption name}{shape=\bfseries}
+
 \setbeamerfont{bibliography item}{size=\small, shape=\scshape}
 \setbeamerfont{bibliography entry author}{size=\small, shape=\scshape}
 \setbeamerfont{bibliography entry title}{size=\small, series=\scshape\bfseries}

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty	2018-08-09 09:18:27 UTC (rev 48381)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty	2018-08-09 20:57:42 UTC (rev 48382)
@@ -1,5 +1,5 @@
 % Copyright (C) 2018 Pasquale Claudio Africa.
-%               2018 Sebastia Friedl.
+%               2018 Sebastian Friedl.
 %
 % This file is part of beamerthemefocus.
 %
@@ -21,8 +21,7 @@
 \RequirePackage{tikz}
 
 
-% CUSTOMIZE STRUCTURE ELEMENTS. ---------------------------------------------------------------------
-
+% CUSTOMIZE STRUCTURE ELEMENTS. ------------------------------------------------
 \setbeamertemplate{blocks}[default]
 
 \setbeamertemplate{section in toc}[square]
@@ -32,9 +31,7 @@
 \setbeamertemplate{itemize subitem}[triangle]
 
 
-
-% STRUCTURE FRAME TEMPLATE DEFINITIONS. -------------------------------------------------------------
-
+% STRUCTURE FRAME TEMPLATE DEFINITIONS. ----------------------------------------
 % Title page.
 \defbeamertemplate*{title page}{focus}{%
     {\usebeamercolor{frametitle}\colorlet{focus@@temp}{bg}%

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty	2018-08-09 09:18:27 UTC (rev 48381)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerouterthemefocus.sty	2018-08-09 20:57:42 UTC (rev 48382)
@@ -23,8 +23,7 @@
 \RequirePackage{tikz}
 
 
-% FRAMETITLE TEMPLATES. -------------------------------------------------------------------------------------------------
-
+% FRAMETITLE TEMPLATES. --------------------------------------------------------
 \defbeamertemplate*{frametitle}{focus}{%
     % If not title page.
     \ifnum\value{framenumber}>0%
@@ -47,9 +46,7 @@
 }
 
 
-
-% FOOTLINE TEMPLATES. ---------------------------------------------------------------------------------------------------
-
+% FOOTLINE TEMPLATES. ----------------------------------------------------------
 % Lenghts for the progress bar footline.
 \newlength{\focus at pbar@height}% Progress bar height.
 \newlength{\focus at pbar@leftoffset}
@@ -99,6 +96,13 @@
 \defbeamertemplate{footline}{fullbar}{%
     % If not appendix.
     \ifnum\mainend<0% From package appendixnumberbeamer.
+        %
+        \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}%
+        %
         % If not title page.
         \ifnum\c at framenumber>0%
             \begin{tikzpicture}[inner xsep=0.5em, inner ysep=0.5ex]
@@ -125,9 +129,7 @@
 \def\beamer at focus@numberingnone{none}
 
 
-
-% BACKGROUND CANVAS TEMPLATES. ------------------------------------------------------------------------------------------
-
+% BACKGROUND CANVAS TEMPLATES. -------------------------------------------------
 \defbeamertemplate*{background canvas}{focus}{%
     \begin{tikzpicture}
         \clip (0,0) rectangle ++(\paperwidth,\paperheight);
@@ -150,9 +152,7 @@
 }
 
 
-
-% HOOKS FOR CREATING FRAMES. --------------------------------------------------------------------------------------------
-
+% HOOKS FOR CREATING FRAMES. ---------------------------------------------------
 \BeforeBeginEnvironment{frame}{%
     \setbeamertemplate{background canvas}[focus]%
     \setbeamertemplate{frametitle}[focus]%
@@ -179,7 +179,6 @@
 }
 
 % Enable noframenumbering option.
-
 \define at key{beamerframe}{noframenumbering}[true]{%
     \setbeamertemplate{footline}[none]%
     \setlength{\focus at pbar@height}{0cm}%
@@ -190,7 +189,6 @@
 
 
 % Enable plain option.
-
 \define at key{beamerframe}{plain}[true]{%
     \setbeamertemplate{background canvas}[focusplain]%
     \setbeamertemplate{frametitle}[plain]%
@@ -201,7 +199,6 @@
 
 % Full vertical centering
 % (from https://tex.stackexchange.com/questions/247826/beamer-full-vertical-centering).
-
 \define at key{beamerframe}{c}[true]{%
     \beamer at frametopskip=0pt plus 1fill\relax%
     \beamer at framebottomskip=0pt plus 1fill\relax%
@@ -212,7 +209,6 @@
 
 
 % Enable focus option.
-
 \providebool{focus at standout}
 \define at key{beamerframe}{focus}[true]{%
     \booltrue{focus at standout}%
@@ -239,7 +235,6 @@
 
 % Recalculate the footline's size and refresh other parameters.
 % Partially copied from the definition of \beamer at calculateheadfoot.
-
 \def\focus at calculatefootheight{%
     \footheight=\focus at pbar@height%
     \advance\footheight by 4pt%

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty	2018-08-09 09:18:27 UTC (rev 48381)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-focus/beamerthemefocus.sty	2018-08-09 20:57:42 UTC (rev 48382)
@@ -17,17 +17,12 @@
 % along with beamerthemefocus. If not, see <http://www.gnu.org/licenses/>.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerthemefocus}[2018/07/15 v2.0 Focus Beamer theme]
+\ProvidesPackage{beamerthemefocus}[2018/08/09 v2.2 Focus Beamer theme]
 
-% Note:
-% Packages should be required in the package file using their commands!
-
-
 \mode<presentation>
 
 
-% THEME OPTIONS. ------------------------------------------------------------------------------------
-
+% THEME OPTIONS. ---------------------------------------------------------------
 \DeclareOptionBeamer{numbering}{%
     \PassOptionsToPackage{numbering=#1}{beamerouterthemefocus}
 }
@@ -36,13 +31,10 @@
 \@focus at loadfirafontstrue
 
 \DeclareOptionBeamer{nofirafonts}{\@focus at loadfirafontsfalse}
-
 \ProcessOptionsBeamer
 
 
-
-% LOAD EXTERNAL PACKAGES. ---------------------------------------------------------------------------------------
-
+% LOAD EXTERNAL PACKAGES. ------------------------------------------------------
 \if at focus@loadfirafonts
     \RequirePackage[T1]{fontenc}
     
@@ -53,7 +45,6 @@
     \RequirePackage{FiraMono}
 \fi
 
-
 \usecolortheme{focus}
 \usefonttheme{focus}
 \useinnertheme{focus}
@@ -62,11 +53,8 @@
 \setbeamertemplate{navigation symbols}{}
 
 
-
-% SET MARGINS. ------------------------------------------------------------------------------------------
-
+% SET MARGINS. -----------------------------------------------------------------
 \setbeamersize{text margin left=0.75cm, text margin right=0.75cm}
 \setlength{\leftmargini}{0.75cm}
-%\leftmarginii=0.75\leftmargini\relax
 
 \mode<all>



More information about the tex-live-commits mailing list