summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/overlays/overlays.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-02-24 03:01:25 +0000
committerNorbert Preining <norbert@preining.info>2021-02-24 03:01:25 +0000
commit55f834f428a0c05dedecc8d33a1c5300e58c91fc (patch)
tree149edecdb34c91f142df481ba9bbb6d74f8f62f6 /macros/latex/contrib/overlays/overlays.sty
parent22774c08f9f3ee390346355cda22d5e5fa667d78 (diff)
CTAN sync 202102240301
Diffstat (limited to 'macros/latex/contrib/overlays/overlays.sty')
-rw-r--r--macros/latex/contrib/overlays/overlays.sty22
1 files changed, 15 insertions, 7 deletions
diff --git a/macros/latex/contrib/overlays/overlays.sty b/macros/latex/contrib/overlays/overlays.sty
index c9efe7af7b..a36eb71693 100644
--- a/macros/latex/contrib/overlays/overlays.sty
+++ b/macros/latex/contrib/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}}