summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/overlays
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-10-24 21:30:28 +0000
committerKarl Berry <karl@freefriends.org>2016-10-24 21:30:28 +0000
commit7015ef628b85aa393ac31de15d4494d643fae708 (patch)
treef1f038a237d281aea70504702619a3b41a97b1e8 /Master/texmf-dist/tex/latex/overlays
parent39bec3187a966abbe72fe5da8cde8bcbb1563ae2 (diff)
overlays (24oct16)
git-svn-id: svn://tug.org/texlive/trunk@42348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/overlays')
-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