summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/xypic/xypdf-co.tex')
-rw-r--r--Master/texmf-dist/tex/generic/xypic/xypdf-co.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex b/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex
index 96b965bcfb5..60e4060dbb2 100644
--- a/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex
+++ b/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex
@@ -8,7 +8,7 @@
%%
%% The xypdf package for TeX and LaTeX
%% Copyright (c) 2010 by Daniel Müllner (M\"ullner)
-%% <http://math.stanford.edu/\protect \unhbox \voidb@x \penalty \@M \ {}muellner>
+%% <http://math.stanford.edu/~muellner>
%% --------------------------------------------------------------------------
%%
%% This program is free software: you can redistribute it and/or modify it
@@ -66,6 +66,7 @@
\@ifdefinable\xP@colD\relax
\xP@hook{color}{newxycolor}
\newcommand*\xP@newxycolor[2]{\def\xP@colorname{#1}\xP@parsecolor#2 @}
+\xP@color@on
\@ifdefinable\xP@parsecolor\relax
\def\xP@parsecolor#1 #2 #3@{\def\xP@colA{#1}\def\xP@colB{#2}\ifx\xP@colB\xP@gray
\xP@newcolor\xP@colorname\xP@colA\xP@gray\newxycolor
@@ -111,7 +112,7 @@
\newcommand*\xP@newcolor[4]{\expandafter\let\expandafter\next@\csname shape [#1]\endcsname
\ifx\next@\relax
\@ifundefined{\string\color@#1}\relax
-{\xP@warning{xypdf}{The color `#1' is overridden by \string#4}}\DN@{\newxystyle{#1}{\xP@unnamedcolor{#2}{#3}}}\else
+{\xP@warning{xypdf}{The color `#1' is overridden by \string#4}}\edef\next@{\noexpand\newxystyle{#1}{\noexpand\xP@unnamedcolor{#2}{#3}}}\else
\DN@{}\fi
\next@\relax}
\newcommand*\xP@unnamedcolor[2]{\xP@color{[#2]{#1}}}