summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/overlays/overlays.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/overlays/overlays.sty')
-rw-r--r--Master/texmf-dist/tex/latex/overlays/overlays.sty14
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/overlays/overlays.sty b/Master/texmf-dist/tex/latex/overlays/overlays.sty
index 42d76fd33df..2db16f624ba 100644
--- a/Master/texmf-dist/tex/latex/overlays/overlays.sty
+++ b/Master/texmf-dist/tex/latex/overlays/overlays.sty
@@ -1,9 +1,9 @@
-\ProvidesPackage{overlays}[2016/10/04 v2.3 Incremental slides]
+\ProvidesPackage{overlays}[2016/10/24 v2.4 Incremental slides]
% Copyright (C) 2016 Andreas Nolda
% Author: Andreas Nolda <andreas@nolda.org>
-% Version: 2.3
+% Version: 2.4
% 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)
@@ -138,7 +138,12 @@
\newcommand{\only}[2]{\overl@y{#1}{#2}{\setbox1=\vbox{#2}}} % ensure side-effects of content (such as incremented counters)
\definecolor{background}{rgb}{1,1,1}
+\@ifpackageloaded{pstricks}%
+ {\def\pssetb@ckgroundcolor{\psset{linecolor=background}}}%
+ {\def\pssetb@ckgroundcolor{\relax}}
+
\newcommand{\visible}[2]{\overl@y{#1}{#2}{{\color{background}%
+ \pssetb@ckgroundcolor
\let\default@color\current@color % make equation number invisible
#2%
\ifvmode
@@ -146,7 +151,12 @@
\fi}}}
\definecolor{alert}{rgb}{1,0,0}
+\@ifpackageloaded{pstricks}%
+ {\def\psset@lertcolor{\psset{linecolor=alert}}}%
+ {\def\psset@lertcolor{\relax}}
+
\newcommand{\alert}[2]{\overl@y{#1}{{\color{alert}%
+ \psset@lertcolor
#2%
\ifvmode
\unskip % undo spurious space introduced by \color