From d0c7cc17855848085c3c573b0b62f5495cecc326 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 6 Sep 2018 20:46:11 +0000 Subject: beamerswitch (6sep18) git-svn-id: svn://tug.org/texlive/trunk@48603 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/beamerswitch/beamerswitch.cls | 33 ++++++++++++++-------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/tex/latex/beamerswitch') diff --git a/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls b/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls index df711623170..a9302bd920a 100644 --- a/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls +++ b/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls @@ -15,7 +15,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{beamerswitch} - [2018/08/29 v1.4 Convenient mode selection in Beamer documents] + [2018/09/05 v1.4.1 Convenient mode selection in Beamer documents] \RequirePackage{xkeyval,xkvltxp,etoolbox,xstring,shellesc,iftex} \define@boolkey[DC]{beamerswitch}{beamer}[true]{% \ifbool{DC@beamerswitch@beamer}{% @@ -183,20 +183,30 @@ \define@boolkey[HL]{beamerswitch}{align}[true]{} \newlength{\handoutpnobaseline} \setlength{\handoutpnobaseline}{5mm} +\newcounter{handoutpno} \define@boolkey[HL]{beamerswitch}{pnos}[true]{} +\def\beamerswitch@footer{} +\patchcmd{\pgfpages@buildshipoutbox}{% + \pgfsys@endpicture +}{% + \beamerswitch@footer\pgfsys@endpicture +}{}{} \newlength{\beamerswitch@pnoadjust} \newcommand*{\handoutlayout}[1]{% \only{% \setlength{\beamerswitch@pnoadjust}{1em}% \setkeys[HL]{beamerswitch}{#1}% \ifbool{HL@beamerswitch@pnos}{% - \def\pgfsys@endpicture{% - \raisebox{\the\handoutpnobaseline}[0pt][0pt]{% - \makebox[\pgfphysicalwidth]{% - \the\numexpr(\value{page} - 2 + (\beamerswitch@nup / 2))% - / \beamerswitch@nup\relax - }% - }\par + \def\beamerswitch@footer{% + \stepcounter{handoutpno}% + \setbox0\vbox{\makebox[0pt][c]{\arabic{handoutpno}}}% + \pgfsys@beginscope + \pgflowlevel{\pgftransformshift{% + \pgfpoint{.5\pgfphysicalwidth}{\handoutpnobaseline}}}% + \wd0=0pt% + \dp0=-\ht0% + \pgfsys@hbox0% + \pgfsys@endscope }% \ifbool{HL@beamerswitch@align}{% \ifcase\value{beamerswitch@nupcase}\relax @@ -221,7 +231,7 @@ {\the\dimexpr\handoutpnobaseline + \beamerswitch@pnoadjust\relax}% }{}% }{% - \def\pgfsys@endpicture{}% + \def\beamerswitch@footer{}% }% \ifcase\value{beamerswitch@nupcase}\relax \def\beamerswitch@nup{2}% @@ -1174,7 +1184,8 @@ \ifundef{\beamer@originstitute}{% \renewcommand{\institute}[2][]{\def\insertinstitute{##2}}% }{% - \renewcommand{\institute}[2][]{\def\insertinstitute{##2}\beamer@originstitute{##2}}% + \renewcommand{\institute}[2][]{% + \def\insertinstitute{##2}\beamer@originstitute{##2}}% }% \def\@maketitle{% \newpage @@ -1217,6 +1228,6 @@ }% } %% -%% Copyright (C) 2016-2017 by Alex Ball +%% Copyright (C) 2016-2018 by Alex Ball %% %% End of file `beamerswitch.cls'. -- cgit v1.2.3