summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamerswitch
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-28 22:04:15 +0000
committerKarl Berry <karl@freefriends.org>2019-01-28 22:04:15 +0000
commit99c613f04edeed8a28efac69411132ea2cd8164d (patch)
tree08dfa6b30c8ee0ed1fd6d71f5cde0542efb80cdd /Master/texmf-dist/tex/latex/beamerswitch
parent3e868961dcbbe4a5ef7f395e1d9cb824100e0046 (diff)
beamerswitch (28jan19)
git-svn-id: svn://tug.org/texlive/trunk@49849 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamerswitch')
-rw-r--r--Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls18
1 files changed, 13 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls b/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls
index a9302bd920a..150b22391cf 100644
--- a/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls
+++ b/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls
@@ -8,14 +8,14 @@
%% ----------------------------------------------------------------
%% beamerswitch --- Convenient mode selection in Beamer documents
%% Author: Alex Ball
-%% E-mail: a.j.ball@bath.ac.uk
+%% E-mail: ab318@bath.ac.uk
%% License: Released under the LaTeX Project Public License v1.3c or later
%% See: http://www.latex-project.org/lppl.txt
%% ----------------------------------------------------------------
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{beamerswitch}
- [2018/09/05 v1.4.1 Convenient mode selection in Beamer documents]
+ [2019/01/28 v1.5 Convenient mode selection in Beamer documents]
\RequirePackage{xkeyval,xkvltxp,etoolbox,xstring,shellesc,iftex}
\define@boolkey[DC]{beamerswitch}{beamer}[true]{%
\ifbool{DC@beamerswitch@beamer}{%
@@ -170,7 +170,14 @@
\define@key[HL]{beamerswitch}{border}[0.4pt]{%
\RequirePackage{pgf}%
\ifdimcomp{#1}{>}{0pt}{%
- \renewcommand*{\beamerswitch@Border}{\pgfsetlinewidth{#1}\pgfstroke}%
+ \renewcommand*{\beamerswitch@Border}{%
+ \ifnumcomp{(\value{handoutpno} * \beamerswitch@nup) + \the\pgf@cpn}%
+ {>}{\beamer@endpageofdocument}{%
+ \relax
+ }{%
+ \pgfsetlinewidth{#1}\pgfstroke
+ }%
+ }%
}{%
\renewcommand*{\beamerswitch@Border}{\relax}%
}%
@@ -231,7 +238,7 @@
{\the\dimexpr\handoutpnobaseline + \beamerswitch@pnoadjust\relax}%
}{}%
}{%
- \def\beamerswitch@footer{}%
+ \def\beamerswitch@footer{\stepcounter{handoutpno}}%
}%
\ifcase\value{beamerswitch@nupcase}\relax
\def\beamerswitch@nup{2}%
@@ -810,6 +817,7 @@
\pgfpageslogicalpageoptions{1}
{%
border shrink=\pgfpageoptionborder,%
+ border code=\beamerswitch@Border,%
resized width=.5\pgfphysicalwidth,%
resized height=.333\pgfphysicalheight,%
center=\ifbool{HL@beamerswitch@align}{%
@@ -1228,6 +1236,6 @@
}%
}
%%
-%% Copyright (C) 2016-2018 by Alex Ball <a.j.ball@bath.ac.uk>
+%% Copyright (C) 2016-2019 by Alex Ball <ab318@bath.ac.uk>
%%
%% End of file `beamerswitch.cls'.