diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/overlays/overlays.sty | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/overlays/overlays.sty b/Master/texmf-dist/tex/latex/overlays/overlays.sty index c9efe7af7bd..a36eb71693e 100644 --- a/Master/texmf-dist/tex/latex/overlays/overlays.sty +++ b/Master/texmf-dist/tex/latex/overlays/overlays.sty @@ -1,14 +1,14 @@ -\ProvidesPackage{overlays}[2017/12/21 v2.10 Incremental slides] +\ProvidesPackage{overlays}[2021/02/23 v2.12 Incremental slides] -% Copyright (C) 2017 Andreas Nolda +% Copyright (C) 2021 Andreas Nolda % Author: Andreas Nolda <andreas@nolda.org> -% Version: 2.10 +% Version: 2.12 % This work may be distributed and/or modified under the conditions of the LaTeX -% Project Public License, either version 1.3 of this license or (at your option) -% any later version. The latest version of this license is in -% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +% Project Public License, either version 1.3c of this license or (at your +% option) any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3c or later is part of all % distributions of LaTeX version 2005/12/01 or later. % The following code is inspired by Matthias Meister's "present" package. It @@ -139,7 +139,7 @@ \foreach \i in {#2} {\afterassignment\getoverl@yspecb \overl@yspeca=0\i\relax - \pgfmathtruncatemacro\result{(#1>=\overl@yspeca) && (#1<=\overl@yspecb)}% + \pgfmathtruncatemacro\result{and((#1>=\overl@yspeca),(#1<=\overl@yspecb))}% \ifnum\result=1\relax \breakforeach \global\let\inoverl@yspec\@firstoftwo @@ -186,3 +186,11 @@ \newcommand{\psalert}[2]{\overl@y{#1}{{\psset@lertcolor {#2}}}{#2}} + +\newcommand{\alertsoff}{\renewcommand{\alert}[2]{##2}% + \renewcommand{\psalert}[2]{##2}} + +\newcommand{\overlaysoff}{\RenewEnviron{overlays}[1]% + {\maxoverl@y=##1% + \curoverl@y=##1% + \BODY}} |