diff options
author | Karl Berry <karl@freefriends.org> | 2018-07-16 23:04:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-07-16 23:04:19 +0000 |
commit | 4712a2a4209de069ba87751cf2a4043fc459a8cf (patch) | |
tree | 95b997501d95c11c08135cbf9f0c410f6dc3a2ee /Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty | |
parent | 0020e189485e9db6a9d7f550d4d3a916b3f46198 (diff) |
beamertheme-focus (16jul18)
git-svn-id: svn://tug.org/texlive/trunk@48211 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty | 82 |
1 files changed, 34 insertions, 48 deletions
diff --git a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty index e130a827c76..3fa7e8b2dd4 100644 --- a/Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty +++ b/Master/texmf-dist/tex/latex/beamertheme-focus/beamerinnerthemefocus.sty @@ -1,15 +1,16 @@ % Copyright (C) 2018 Pasquale Claudio Africa. +% 2018 Sebastia Friedl. % % This file is part of beamerthemefocus. % -% beamerthemefocusis free software: you can redistribute it and/or modify +% beamerthemefocus is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. % % beamerthemefocus is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License @@ -17,31 +18,29 @@ \mode<presentation> -% Main background. -\defbeamertemplate*{background}{focus}{ - % Titlepage. - \ifnum\c@framenumber=0 - \begin{tikzpicture}[overlay, remember picture] - \fill[color=background] (current page.north west) rectangle (current page.south east); - \end{tikzpicture} - \fi -} +\RequirePackage{tikz} + + +% CUSTOMIZE STRUCTURE ELEMENTS. --------------------------------------------------------------------- + +\setbeamertemplate{blocks}[default] + +\setbeamertemplate{section in toc}[square] +\setbeamertemplate{subsection in toc}[square] + +\setbeamertemplate{itemize items}[square] +\setbeamertemplate{itemize subitem}[triangle] -% Focus frame background. -\defbeamertemplate{background}{focusframe}{ - \ifnum\c@framenumber>0 - \begin{tikzpicture}[overlay, remember picture] - \fill[color=main] (current page.north west) rectangle (current page.south east); - \end{tikzpicture} - \fi -} + + +% STRUCTURE FRAME TEMPLATE DEFINITIONS. ------------------------------------------------------------- % Title page. -\defbeamertemplate*{title page}{focus}[1][] -{ - \begin{tikzpicture}[overlay, remember picture] - \fill[color=main] (current page.north west) rectangle ([shift = {(0, -0.45\paperheight)}] current page.north east); - \end{tikzpicture} +\defbeamertemplate*{title page}{focus}{% + {\usebeamercolor{frametitle}\colorlet{focus@@temp}{bg}% + \begin{tikzpicture}[overlay, remember picture] + \fill[color=focus@@temp] (current page.north west) rectangle ([shift = {(0, -0.45\paperheight)}] current page.north east); + \end{tikzpicture}} \vspace{-1.65\baselineskip} \begin{minipage}[b][0.35\paperheight]{\textwidth} @@ -59,10 +58,10 @@ % Set the title graphic in a zero-height box, so that % the position of other elements is not affected. - \vbox to 0pt { + {\vfuzz=9999pt\vbox to 0pt { \raggedleft \inserttitlegraphic - } + }} \begin{minipage}[t]{\textwidth} \usebeamerfont{author} @@ -86,10 +85,13 @@ } % Section page. -\defbeamertemplate*{section page}{focus}{ - \begin{tikzpicture}[overlay, remember picture] - \fill[color=main] (current page.north west) rectangle ([shift = {(0, -0.45\paperheight)}] current page.north east); - \end{tikzpicture} +\defbeamertemplate*{section page}{focus}{% + {% + \usebeamercolor{frametitle}\colorlet{focus@@temp}{bg}% + \begin{tikzpicture}[overlay, remember picture] + \fill[color=focus@@temp] (current page.north west) rectangle ([shift = {(0, -0.45\paperheight)}] current page.north east); + \end{tikzpicture}% + } \vspace{-2\baselineskip} \begin{minipage}[b][0.45\paperheight]{\textwidth} @@ -101,27 +103,11 @@ \begin{minipage}[t][0.55\paperheight]{\textwidth} \end{minipage} } -\setbeamertemplate{section page}[focus] -\AtBeginSection{ +\AtBeginSection{% \begin{frame}[plain, noframenumbering]{} \sectionpage - \end{frame} -} - -% Shift footnotes to prevent overlap with footline. -\addtobeamertemplate{footnote} -{\ifnum\footlineheight>0\vspace{-0.55\footlineheight}\fi} -{\ifnum\footlineheight>0\vspace{0.55\footlineheight}\fi} - -\renewcommand*{\footnoterule} -{ - \kern -3pt - \hrule width 2in height 0.4pt - \ifnum\footlineheight>0 - \kern 0.55\footlineheight - \fi - \kern 2.6pt + \end{frame}% } \mode<all> |