[latex3-commits] [git/LaTeX3-latex3-xcolor] changekeyhandler: correct frozen version (bcdb132)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Aug 1 10:42:45 CEST 2022


Repository : https://github.com/latex3/xcolor
On branch  : changekeyhandler
Link       : https://github.com/latex3/xcolor/commit/bcdb13203914b9c2b66f1d413c14cc5930cea58c

>---------------------------------------------------------------

commit bcdb13203914b9c2b66f1d413c14cc5930cea58c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Aug 1 10:42:45 2022 +0200

    correct frozen version


>---------------------------------------------------------------

bcdb13203914b9c2b66f1d413c14cc5930cea58c
 xcolor-2021-10-31.sty | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/xcolor-2021-10-31.sty b/xcolor-2021-10-31.sty
index 268df88..0c8feea 100644
--- a/xcolor-2021-10-31.sty
+++ b/xcolor-2021-10-31.sty
@@ -21,12 +21,12 @@
 %% same distribution. (The sources need not necessarily be
 %% in the same archive or directory.)
 %%
-\ProvidesPackage{xcolor-2021-10-31}
- [2021/10/31 v2.13 LaTeX color extensions (UK)]
+\ProvidesPackage{xcolor}
+ [2022/06/12 v2.14 LaTeX color extensions (UK)]
 %%
 %% ----------------------------------------------------------------
 %% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
-%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
+%%               2021-2022    LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
 %% Please send error reports and suggestions for
@@ -470,7 +470,7 @@
 \def\XC at clr@gray at white{1}
 \@tfor\@@tmp:={grad}{last}{step}\do
  {\XC at let@cN{XC at met@\@@tmp}\@@tmp}
-\def\definecolor{\@testopt{\XC at definecolor}{}}
+\protected\def\definecolor{\@testopt{\XC at definecolor}{}}
 \def\XC at definecolor[#1]#2%
  {\@testopt{\XC at definec@lor[#1]{#2}}\colornameprefix}
 \def\XC at definec@lor[#1]#2[#3]#4#5%
@@ -582,7 +582,7 @@
    {\edef\@@tmp
      {\ifglobalcolors\global\else\xglobal@\fi
       \noexpand\XC at let@cc{\@backslashchar color@#1}{\@backslashchar color@#2}}}}
-\def\DefineNamedColor#1%
+\protected\def\DefineNamedColor#1%
  {\@nameuse{XC@\ifdefinecolors defin\else prepar\fi ecolor}[#1]}
 \def\preparecolor{\@testopt{\XC at preparecolor}{}}
 \def\XC at preparecolor[#1]#2%
@@ -755,20 +755,20 @@
  {\XC at let@Nc\XC at current@color{\@backslashchar color@\XC@@tmp}%
   \edef\current at color{\XC at current@color}%
   \XC at display}
-\def\textcolor#1#{\@textcolor{#1}}
+\protected\def\textcolor#1#{\@textcolor{#1}}
 \def\@textcolor#1#2#3{\protect\leavevmode{\color#1{#2}#3}}
-\def\pagecolor
+\protected\def\pagecolor
  {\begingroup
   \let\ignorespaces\endgroup \let\set at color\set at page@color
   \color}
-\def\nopagecolor
+\protected\def\nopagecolor
  {\@ifundefined{no at page@color}%
    {\PackageInfo{xcolor}{\@backslashchar nopagecolor\space is not supported}}%
    {\no at page@color}}
 \InputIfFileExists{mathcolor.ltx}{}{}
-\def\colorbox#1#{\protect\color at box{#1}}
+\protected\def\colorbox#1#{\color at box{#1}}
 \def\color at box#1#2{\color at b@x\relax{\color#1{#2}}}
-\def\fcolorbox#1#{\color at fbox{#1}}
+\protected\def\fcolorbox#1#{\color at fbox{#1}}
 \def\color at fbox#1#2#3#{\protect\color at fb@x{#1}{#2}{#3}}
 \def\color at fb@x#1#2#3#4%
  {\color at b@x{\fboxsep\z@\color#1{#2}\XC at fbox}%
@@ -1055,7 +1055,7 @@
   \ifin@\def#2{4}\else\expandafter\in@\expandafter:\expandafter{#2}%
   \ifin@\def#2{3}\else\expandafter\in@\expandafter!\expandafter{#2}%
   \ifin@\def#2{2}\else % now there's no >,:,!
-  \if-\expandafter\@car#2\@nil\def#2{2}\else % catches -red
+  \if-\expandafter\@car#2\relax\@nil\def#2{2}\else % catches -red
   \edef#2{\noexpand\in@{/./}{/#2/}}#2%
   \edef#2{\ifin at 0\else1\fi}\fi\fi\fi\fi}
 \def\tracingcolors{\begingroup\afterassignment\XC at tracingcolors\count@}
@@ -1405,7 +1405,7 @@
 \let\pst at getcolor\XC at getcolor
 \let\pst at usecolor\XC at usecolor
 \def\c at lor@special#1#2{\edef\@tempa{\write#1{#2}}\@tempa}
-\def\normalcolor{\let\current at color\default at color\set at color}
+\protected\def\normalcolor{\let\current at color\default at color\set at color}
 \AtBeginDocument{\let\default at color\current at color}
 \XC at ifcase\XC@@drv
  {{dvipdf,dvipdfm,dvipdfmx,dvips,pctex32}%





More information about the latex3-commits mailing list.