From 7389bb9fb813a0f5e8654431dacfcb81d1f116e4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 23 Feb 2021 22:34:45 +0000 Subject: overlays (23feb21) git-svn-id: svn://tug.org/texlive/trunk@57861 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/overlays/overlays.sty | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/overlays/overlays.sty') 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 -% 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}} -- cgit v1.2.3