texlive[60925] Master/texmf-dist: xcolor (1nov21)

commits+karl at tug.org commits+karl at tug.org
Mon Nov 1 21:35:03 CET 2021


Revision: 60925
          http://tug.org/svn/texlive?view=revision&revision=60925
Author:   karl
Date:     2021-11-01 21:35:03 +0100 (Mon, 01 Nov 2021)
Log Message:
-----------
xcolor (1nov21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/xcolor/ChangeLog
    trunk/Master/texmf-dist/doc/latex/xcolor/README
    trunk/Master/texmf-dist/doc/latex/xcolor/xcolor.lox
    trunk/Master/texmf-dist/doc/latex/xcolor/xcolor.pdf
    trunk/Master/texmf-dist/doc/latex/xcolor/xcolor1.tex
    trunk/Master/texmf-dist/doc/latex/xcolor/xcolor2.pdf
    trunk/Master/texmf-dist/doc/latex/xcolor/xcolor2.tex
    trunk/Master/texmf-dist/doc/latex/xcolor/xcolor3.tex
    trunk/Master/texmf-dist/doc/latex/xcolor/xcolor4.tex
    trunk/Master/texmf-dist/dvips/xcolor/xcolor.pro
    trunk/Master/texmf-dist/source/latex/xcolor/xcolor.dtx
    trunk/Master/texmf-dist/tex/latex/xcolor/svgnam.def
    trunk/Master/texmf-dist/tex/latex/xcolor/x11nam.def
    trunk/Master/texmf-dist/tex/latex/xcolor/xcolor.sty

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcolor/ChangeLog	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/doc/latex/xcolor/ChangeLog	2021-11-01 20:35:03 UTC (rev 60925)
@@ -1,9 +1,17 @@
 Package `xcolor' by Dr. Uwe Kern
-(xcolor at ukern dot de)
+https://github.com/latex3/xcolor/issues
 
 History
 =======
-
+2021/10/31 v2.13
+* Bugfixes (LaTeX Team)
+    - use \@backslashchar color rather than \string\color to
+	generate internal csnames, to avoid relying on the
+	current setting	of \escapechar
+    - Declare dvisvgm option to match graphics and color packages.
+	Make dvipdfm an alias for dvipdfmx
+    - Modify \XC at info to avoid spurious text from \colorlet{foo}{.!50}
+	
 2016/05/11 v2.12
 * New features:
     - \nopagecolor command as introduced in `color' v1.1a

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcolor/README	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/doc/latex/xcolor/README	2021-11-01 20:35:03 UTC (rev 60925)
@@ -1,7 +1,6 @@
 Package `xcolor' by Dr. Uwe Kern
-(xcolor at ukern dot de)
+Maintained by the LaTeX Project https://github.com/latex3/xcolor/issues
 
-v2.12 (2016/05/11)
 
 `xcolor' provides easy driver-independent access to several kinds of
 colors, tints, shades, tones, and mixes of arbitrary colors by means of

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/xcolor.lox
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcolor/xcolor.lox	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/doc/latex/xcolor/xcolor.lox	2021-11-01 20:35:03 UTC (rev 60925)
@@ -22,11 +22,12 @@
 %% in the same archive or directory.)
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
-\def\XCfileversion{v2.12}%
-\def\XCfiledate{2016/05/11}%
+\def\XCfileversion{v2.13}%
+\def\XCfiledate{2021/10/31}%
 \def\ukfile#1#2#3#4%
  {\def\ukhead
    {\ifnum#1>2 \perCent!^^J\fi

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/xcolor.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/xcolor1.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcolor/xcolor1.tex	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/doc/latex/xcolor/xcolor1.tex	2021-11-01 20:35:03 UTC (rev 60925)
@@ -22,14 +22,15 @@
 %% in the same archive or directory.)
 %%
 \ProvidesFile{xcolor1}
- [2016/05/11 v2.12 Color conversion test (UK)]
+ [2021/10/31 v2.13 Color conversion test (UK)]
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
-\def\XCfileversion{v2.12}%
-\def\XCfiledate{2016/05/11}%
+\def\XCfileversion{v2.13}%
+\def\XCfiledate{2021/10/31}%
 \documentclass[a4paper]{article}
 
 \usepackage{array,multicol,multido,textcomp}
@@ -134,7 +135,7 @@
 \begin{document}
 
 \title{Color conversion with the \textsf{xcolor} package --- Examples}
-\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{xcolor at ukern.de}.}}
+\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{https://github.com/latex3/xcolor/issues}.}}
 \date{\XCfileversion{} (\XCfiledate)}
 \maketitle
 

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/xcolor2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/xcolor2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcolor/xcolor2.tex	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/doc/latex/xcolor/xcolor2.tex	2021-11-01 20:35:03 UTC (rev 60925)
@@ -22,14 +22,15 @@
 %% in the same archive or directory.)
 %%
 \ProvidesFile{xcolor2}
- [2016/05/11 v2.12 Pstricks color test (UK)]
+ [2021/10/31 v2.13 Pstricks color test (UK)]
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
-\def\XCfileversion{v2.12}%
-\def\XCfiledate{2016/05/11}%
+\def\XCfileversion{v2.13}%
+\def\XCfiledate{2021/10/31}%
 \listfiles
 \documentclass{article}
 
@@ -36,7 +37,7 @@
 \usepackage{pstricks,pst-tree,pst-slpe,multido}
 \makeatletter
 \makeatother
-\usepackage{fvrb-ex}
+\usepackage{fancyvrb-ex}
 
 \def\textfraction{0.01}
 \def\topfraction{0.99}
@@ -48,7 +49,7 @@
 
 \begin{document}
 \title{Color extensions with the \textsf{xcolor} package --- \textsf{pstricks} examples}
-\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{xcolor at ukern.de}.}}
+\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{https://github.com/latex3/xcolor/issues}.}}
 \date{\XCfileversion{} (\XCfiledate)}
 \maketitle
 

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/xcolor3.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcolor/xcolor3.tex	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/doc/latex/xcolor/xcolor3.tex	2021-11-01 20:35:03 UTC (rev 60925)
@@ -22,14 +22,15 @@
 %% in the same archive or directory.)
 %%
 \ProvidesFile{xcolor3}
- [2016/05/11 v2.12 Color logging test (UK)]
+ [2021/10/31 v2.13 Color logging test (UK)]
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
-\def\XCfileversion{v2.12}%
-\def\XCfiledate{2016/05/11}%
+\def\XCfileversion{v2.13}%
+\def\XCfiledate{2021/10/31}%
 \listfiles
 \documentclass[a4paper]{article}
 \usepackage[showerrors,table,dvipsnames*,hyperref]{xcolor}[2005/12/21]
@@ -56,7 +57,7 @@
 \title{Color extensions with the \textsf{xcolor} package --- various examples}
 \author{\href{mailto:xcolor at ukern.de}{\fboxrule0pt\fboxsep2pt\fbox{Dr. Uwe Kern}}}
 \date{\XCfileversion{} (\XCfiledate)
-\thanks{This file (\texttt{\jobname.tex}) is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors \texttt{\href{http://www.ctan.org/tex-archive/macros/latex/contrib/xcolor/}{CTAN/macros/latex/contrib/xcolor/}} or the homepage \texttt{\href{http://www.ukern.de/tex/xcolor.html}{www.ukern.de/tex/xcolor.html}}. Please send error reports and suggestions for improvements to \texttt{\href{mailto:xcolor at ukern.de}{xcolor at ukern.de}}.}}
+\thanks{This file (\texttt{\jobname.tex}) is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors \texttt{\href{http://www.ctan.org/tex-archive/macros/latex/contrib/xcolor/}{CTAN/macros/latex/contrib/xcolor/}} or the homepage \texttt{\href{http://www.ukern.de/tex/xcolor.html}{www.ukern.de/tex/xcolor.html}}. Please send error reports and suggestions for improvements to \url{https://github.com/latex3/xcolor/issues}.}}
 \maketitle
 
 The purpose of this file is to demonstrate a variety of capabilities including the logging facilities of the \textsf{xcolor} package.

Modified: trunk/Master/texmf-dist/doc/latex/xcolor/xcolor4.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcolor/xcolor4.tex	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/doc/latex/xcolor/xcolor4.tex	2021-11-01 20:35:03 UTC (rev 60925)
@@ -22,14 +22,15 @@
 %% in the same archive or directory.)
 %%
 \ProvidesFile{xcolor4}
- [2016/05/11 v2.12 Color driver test (UK)]
+ [2021/10/31 v2.13 Color driver test (UK)]
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
-\def\XCfileversion{v2.12}%
-\def\XCfiledate{2016/05/11}%
+\def\XCfileversion{v2.13}%
+\def\XCfiledate{2021/10/31}%
 \listfiles
 \documentclass[a4paper]{article}
 %%\PassOptionsToPackage{dvipdf}{xcolor}

Modified: trunk/Master/texmf-dist/dvips/xcolor/xcolor.pro
===================================================================
--- trunk/Master/texmf-dist/dvips/xcolor/xcolor.pro	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/dvips/xcolor/xcolor.pro	2021-11-01 20:35:03 UTC (rev 60925)
@@ -23,10 +23,11 @@
 %% in the same archive or directory.)
 %%
 %% xcolor.pro (PostScript/dvips header file)
-%%  [2016/05/11 v2.12 LaTeX color extensions (UK)]
+%%  [2021/10/31 v2.13 LaTeX color extensions (UK)]
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
 userdict begin

Modified: trunk/Master/texmf-dist/source/latex/xcolor/xcolor.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/xcolor/xcolor.dtx	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/source/latex/xcolor/xcolor.dtx	2021-11-01 20:35:03 UTC (rev 60925)
@@ -1,12 +1,13 @@
 % \iffalse meta-comment
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
 %<*package>
 %% Please send error reports and suggestions for
-%% improvements to the above email address.
+%% improvements to https://github.com/latex3/xcolor/issues.
 %%
 %% This package contains code copied from
 %%
@@ -17,19 +18,19 @@
 %%
 %</package>
 %<*extract|driver|test1|test2|test3|test4>
-\def\XCfileversion{v2.12}%
-\def\XCfiledate{2016/05/11}%
+\def\XCfileversion{v2.13}%
+\def\XCfiledate{2021/10/31}%
 %</extract|driver|test1|test2|test3|test4>
 %
 % This file may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.2
+% conditions of the LaTeX 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.2 or later is part of all distributions of LaTeX
-% version 1999/12/01 or later.
+% and version 1.3c or later is part of all distributions of LaTeX
+% version 2008-05-04 or later.
 %
 % \fi
 %
@@ -231,8 +232,8 @@
 % \date{\XCfileversion{} (\XCfiledate)
 %       \thanks{This package can be downloaded from \CTAN{macros/latex/contrib/xcolor/}{}.
 %               There is also an \textsf{xcolor} homepage: \XCW.
-%               Please send error reports and suggestions for improvements to the author:
-%               \texttt{\href{mailto:xcolor at ukern.de}{xcolor at ukern.de}}.}}
+%               Please send error reports and suggestions for improvements to:
+%               \url{https://github.com/latex3/xcolor/issues}.}}
 % \maketitle
 %
 % \begin{abstract}
@@ -376,7 +377,7 @@
 %
 % In general, there are several types of options:
 % \begin{itemize}
-% \item options that determine the color driver as explained in \cite{dpc} and \cite{color}, currently: \Option{dvips}, \Option{xdvi}, \Option{dvipdf}, \Option{dvipdfm}, \Option{dvipdfmx}, \Option{luatex}, \Option{pdftex}, \Option{dvipsone}, \Option{dviwindo}, \Option{emtex}, \Option{dviwin}, \Option{oztex}, \Option{textures}, \Option{pctexps}, \Option{pctexwin}, \Option{pctexhp}, \Option{pctex32}, \Option{truetex}, \Option{tcidvi}, \Option{vtex}, \Option{xetex},
+% \item options that determine the color driver as explained in \cite{dpc} and \cite{color}, currently: \Option{dvips}, \Option{xdvi}, \Option{dvipdf}, \Option{dvipdfm}, \Option{dvipdfmx}, \Option{luatex}, \Option{pdftex}, \Option{dvipsone}, \Option{dviwindo}, \Option{emtex}, \Option{dviwin}, \Option{oztex}, \Option{textures}, \Option{pctexps}, \Option{pctexwin}, \Option{pctexhp}, \Option{pctex32}, \Option{truetex}, \Option{tcidvi}, \Option{vtex}, \Option{xetex}, \Option{dvisvgm},
 % \item options that determine the target color model\footnote{Section \vref{sec.tgt} explains how this setting can be overridden at any point in a document.} (\Option{natural}, \Option{rgb}, \Option{cmy}, \Option{cmyk}, \Option{hsb}, \Option{gray}, \Option{RGB}, \Option{HTML}, \Option{HSB}, \Option{Gray}) or disable colored output (\Option{monochrome}),
 % \item options that control whether and how certain sets of predefined colors are being loaded: \Option{dvipsnames}, \Option{dvipsnames*}, \Option{svgnames}, \Option{svgnames*}, \Option{x11names}, \Option{x11names*},
 % \item options that determine which other packages are to be loaded or supported: \Option{table}, \Option{fixpdftex},
@@ -3144,6 +3145,16 @@
 % \subsection*{History}
 % \addcontentsline{toc}{subsection}{History}
 %
+% \subsubsection*{2021/10/31 v2.13}
+% \begin{itemize}
+% \item Bug Fixes:
+%   \begin{itemize}
+%   \item Avoid use of |\string| to generate csnames
+%   \item Declare |dvisvgm| option and make |dvipdfm| an alias to |dvipdfmx| to match graphics and color packages.
+%   \item Modify |\XC at info| to avoid spurious text from |\colorlet{foo}{.!50}|
+%   \end{itemize}
+% \end{itemize}
+%
 % \subsubsection*{2016/05/11 v2.12}
 % \begin{itemize}
 % \item New features:
@@ -3596,7 +3607,7 @@
 %  \begin{macro}{\XC@@}
 % Macro consisting of the macro |\\XC@@|, serves as a delimiter.
 %    \begin{macrocode}
-\edef\XC@@{\expandafter\noexpand\csname\string\XC@@\endcsname}
+\edef\XC@@{\expandafter\noexpand\csname\@backslashchar XC@@\endcsname}
 %    \end{macrocode}
 %  \end{macro}
 %
@@ -4044,9 +4055,9 @@
 %
 % Drivers that come with their individual definition files:
 %    \begin{macrocode}
-\@tfor\@@tmp:={dvipdf}{dvipdfm}{dvipdfmx}{dvips}{dvipsone}{dviwin}%
+\@tfor\@@tmp:={dvipdf}{dvipdfmx}{dvips}{dvipsone}{dviwin}%
               {emtex}{luatex}{pctex32}{pctexhp}{pctexps}{pctexwin}{pdftex}%
-              {tcidvi}{textures}{truetex}{vtex}{xetex}\do
+              {tcidvi}{textures}{truetex}{vtex}{xetex}{dvisvgm}\do
  {\edef\@@tmp{\noexpand\DeclareOption{\@@tmp}%
     {\def\noexpand\Gin at driver{\@@tmp.def}}}%
   \@@tmp}
@@ -4057,6 +4068,7 @@
 \DeclareOption{dviwindo}{\ExecuteOptions{dvipsone}}
 \DeclareOption{oztex}{\ExecuteOptions{dvips}}
 \DeclareOption{xdvi}{\ExecuteOptions{dvips,monochrome}}
+\DeclareOption{dvipdfm}{\ExecuteOptions{dvipdfmx}}
 %    \end{macrocode}
 %
 % Options used by (some) drivers.
@@ -4890,7 +4902,7 @@
       \toks@\expandafter{\@@drv}%
       \edef\@@tmp
        {\ifglobalcolors\global\else\xglobal@\fi
-        \noexpand\@namedef{\string\color@\@@nam}%
+        \noexpand\@namedef{\@backslashchar color@\@@nam}%
          {\noexpand\xcolor@{\@@cls}{\the\toks@}{\@@mod}{\@@clr}}}%
     \fi}%
   \expandafter\endgroup\@@tmp\xglobal at stop}
@@ -5026,7 +5038,7 @@
     \else
       \edef\@@tmp
        {\expandafter\expandafter\expandafter\@secondoffive
-         \csname\string\color@\@@clr\endcsname}%
+         \csname\@backslashchar color@\@@clr\endcsname}%
       \ifx\@@cls\@@tmp\XC@@tsttrue\fi
     \fi
   \fi\fi
@@ -5048,7 +5060,7 @@
    {\c at lor@error{`#2'}\let\@@tmp\@empty}%
    {\edef\@@tmp
      {\ifglobalcolors\global\else\xglobal@\fi
-      \noexpand\XC at let@cc{\string\color@#1}{\string\color@#2}}}}
+      \noexpand\XC at let@cc{\@backslashchar color@#1}{\@backslashchar color@#2}}}}
 %    \end{macrocode}
 % \end{macro}
 %
@@ -5194,7 +5206,7 @@
   \XC at sdef\@@mod{#2}%
   \@ifxempty{#4}{\extractcolorspec{#5}\@@clr}{\edef\@@clr{{#4}{#5}}}%
   \expandafter\convertcolorspec\@@clr\@@mod\@@clr
-  \@namexdef{\string\colorB@#1}{{\@@mod}{\@@clr}}%
+  \@namexdef{\@backslashchar colorB@#1}{{\@@mod}{\@@clr}}%
   \edef\@@met{#3}%
   \ifx\@@met\XC at met@last
     \@ifxempty{#6}{\extractcolorspec{#7}\@@tmp}{\edef\@@tmp{{#6}{#7}}}%
@@ -5204,7 +5216,7 @@
   \else
     \edef\@@tmp{#7}%
   \fi
-  \@namexdef{\string\colorD@#1}{{\@@met}{\@@tmp}}%
+  \@namexdef{\@backslashchar colorD@#1}{{\@@met}{\@@tmp}}%
   \endgroup}
 %    \end{macrocode}
 % \end{macro}
@@ -5216,8 +5228,8 @@
 \def\XC at resetcolorseries[#1]#2%
  {\begingroup
   \@namexdef
-   {\string\color@#2}{\noexpand\xcolor@{}{}\@nameuse{\string\colorB@#2}}%
-  \XC at let@Nc\@@tmp{\string\colorD@#2}%
+   {\@backslashchar color@#2}{\noexpand\xcolor@{}{}\@nameuse{\@backslashchar colorB@#2}}%
+  \XC at let@Nc\@@tmp{\@backslashchar colorD@#2}%
   \edef\@@met{\expandafter\@firstoftwo\@@tmp}%
   \edef\@@tmp{\expandafter\@secondoftwo\@@tmp}%
   \ifx\@@met\XC at met@step\else
@@ -5224,7 +5236,7 @@
     \edef\@@scl{\@ifxempty{#1}\colorseriescycle{#1}}%
     \expandafter\XC at calc@\@@tmp,,,,:D%
   \fi
-  \@namexdef{\string\colorS@#2}{\@@tmp}%
+  \@namexdef{\@backslashchar colorS@#2}{\@@tmp}%
   \endgroup}
 %    \end{macrocode}
 % \end{macro}
@@ -5236,14 +5248,14 @@
 % In the relative case, the (non-negative) number of single steps is supposed to be stored in |\@tempcnta|.
 %    \begin{macrocode}
 \def\XC at step#1%
- {\let\xcolor@\@gobbletwo\edef\@@tmp{\@nameuse{\string\color@#1}}%
+ {\let\xcolor@\@gobbletwo\edef\@@tmp{\@nameuse{\@backslashchar color@#1}}%
   \expandafter\XC at st@p\@@tmp{#1}%
-  \@namexdef{\string\color@#1}{\noexpand\xcolor@{}{}{\@@mod}{\@@tmp}}}
+  \@namexdef{\@backslashchar color@#1}{\noexpand\xcolor@{}{}{\@@mod}{\@@tmp}}}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
 \def\XC at st@p#1#2#3%
- {\def\@@mod{#1}\def\@@tmp{#2}\edef\@@vec{\@nameuse{\string\colorS@#3}}%
+ {\def\@@mod{#1}\def\@@tmp{#2}\edef\@@vec{\@nameuse{\@backslashchar colorS@#3}}%
   \@whilenum\@tempcnta>\z@\do
    {\XC at inflate\@@mod\@@tmp\@@vec\@@tmp
     \expandafter\XC at add\@@tmp,\@@tmp \expandafter\XC at calc@\@@tmp,,,,:U%
@@ -5252,7 +5264,7 @@
 %
 %    \begin{macrocode}
 \def\XC at stepabs#1%
- {\edef\@@tmp{\@nameuse{\string\colorB@#1}}%
+ {\edef\@@tmp{\@nameuse{\@backslashchar colorB@#1}}%
   \expandafter\XC at st@p\@@tmp{#1}%
   \edef\@@tmp
    {\def\noexpand\@@mod{\@@mod}\def\noexpand\@@clr{\@@tmp}}}
@@ -5406,7 +5418,7 @@
 %
 %    \begin{macrocode}
 \def\XC at declaredc@lor
- {\XC at let@Nc\XC at current@color{\string\color@\XC@@tmp}%
+ {\XC at let@Nc\XC at current@color{\@backslashchar color@\XC@@tmp}%
   \edef\current at color{\XC at current@color}%
   \XC at display}
 %    \end{macrocode}
@@ -5444,7 +5456,7 @@
 %    \begin{macrocode}
 \def\nopagecolor
  {\@ifundefined{no at page@color}%
-   {\PackageInfo{xcolor}{\string\nopagecolor\space is not supported}}%
+   {\PackageInfo{xcolor}{\@backslashchar nopagecolor\space is not supported}}%
    {\no at page@color}}
 %    \end{macrocode}
 %  \end{macro}
@@ -5778,7 +5790,7 @@
   \ifodd\count@\@tempswatrue\else\@tempswafalse\fi
   \@ifundefinedcolor\@@nam
    {\c at lor@error{`\@@nam'}\def\@@nam{black}}{}%
-  \let\xcolor@\@xcolor@\@nameuse{\string\color@\@@nam}}
+  \let\xcolor@\@xcolor@\@nameuse{\@backslashchar color@\@@nam}}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -5852,11 +5864,11 @@
 % Write information to log file and display the current color.
 %    \begin{macrocode}
 \def\XC at display
- {\XC at bcolor\XC at let@cN{\string\color at .}\XC at current@color
+ {\XC at bcolor\XC at let@cN{\@backslashchar color at .}\XC at current@color
   \ifnum\XC at type{.}=1
     \PackageWarning{xcolor}{Incompatible color definition}\else
   \ifnum\XC at tracing>2
-    \begingroup \let\xcolor@\@empty \def\@nil{\string\@nil}%
+    \begingroup \let\xcolor@\@empty \def\@nil{\@backslashchar @nil}%
     \PackageInfo{xcolor}{Setting color `\XC at current@color'}%
     \endgroup
   \fi\fi
@@ -6058,7 +6070,7 @@
 %   \marg{name}\marg{undefined}\marg{defined}\\
 % Checks whether \Meta{name} is a defined color name and executes the respective code.
 %    \begin{macrocode}
-\def\@ifundefinedcolor#1{\@ifundefined{\string\color@#1}}
+\def\@ifundefinedcolor#1{\@ifundefined{\@backslashchar color@#1}}
 %    \end{macrocode}
 % \end{macro}
 %
@@ -6086,7 +6098,7 @@
 %    \begin{macrocode}
 \def\XC at type#1%
  {\expandafter\expandafter\expandafter\XC at typ@
-  \csname\string\color@#1\endcsname\@empty\@empty\@empty\XC@@}
+  \csname\@backslashchar color@#1\endcsname\@empty\@empty\@empty\XC@@}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -6117,11 +6129,13 @@
 %    \begin{macrocode}
 \def\XC at info#1#2%
  {\XC at edef#2{#1}%
-  \if.#2\def#2{0}\else\expandafter\in@\expandafter>\expandafter{#2}%
+  \expandafter\in@\expandafter>\expandafter{#2}%
   \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\edef#2{\noexpand\in@{/-}{/#2}}#2%
-  \edef#2{\ifin at 2\else1\fi}\fi\fi\fi\fi}
+  \ifin@\def#2{2}\else % now there's no >,:,!
+  \if-\expandafter\@car#2\@nil\def#2{2}\else % catches -red
+  \edef#2{\noexpand\in@{/./}{/#2/}}#2%
+  \edef#2{\ifin at 0\else1\fi}\fi\fi\fi\fi}
 %    \end{macrocode}
 % \end{macro}
 %
@@ -6925,7 +6939,7 @@
     \expandafter\expandafter\expandafter\c at lor@to at ps#1#2\@@
   \else
     \expandafter\expandafter\expandafter\expandafter\expandafter\expandafter
-    \expandafter\c at lor@to at ps\csname\string\color@#1#2\endcsname\@@
+    \expandafter\c at lor@to at ps\csname\@backslashchar color@#1#2\endcsname\@@
   \fi
   \space}
 %    \end{macrocode}
@@ -6986,9 +7000,9 @@
  {{dvipdf,dvipdfm,dvipdfmx,dvips,pctex32}%
   {\def\c at lor@@named#1,#2,#3\@@#4%
     {\edef#4{\expandafter\expandafter\expandafter\@thirdoffive
-             \csname\string\color@#1\endcsname}}
+             \csname\@backslashchar color@#1\endcsname}}
    \def\define at color@named#1#2%
-    {\@namedef{\string\color@#1}{{}{}{ \colornameprefix#1}{}{}}}}%
+    {\@namedef{\@backslashchar color@#1}{{}{}{ \colornameprefix#1}{}{}}}}%
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -6995,9 +7009,9 @@
   {dvipsone,luatex,pctexps,pdftex,tcidvi,truetex,vtex,xetex}%
   {\def\c at lor@@named#1,#2,#3\@@#4%
     {\edef#4{\expandafter\expandafter\expandafter\@thirdoffive
-             \csname\string\color@#1\endcsname}}
+             \csname\@backslashchar color@#1\endcsname}}
    \def\define at color@named#1#2%
-    {\let\@@cls\@empty\@namedef{\string\color@#1}{{}{}{#2}{}{}}}}%
+    {\let\@@cls\@empty\@namedef{\@backslashchar color@#1}{{}{}{#2}{}{}}}}%
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -7010,7 +7024,7 @@
    \def\c at lor@ps@#1 #2\@@
     {\expandafter\expandafter\expandafter\expandafter\expandafter
      \expandafter\expandafter\c at lor@to at ps@
-     \csname\string\color@#1\expandafter\endcsname\space
+     \csname\@backslashchar color@#1\expandafter\endcsname\space
      #2. \@@{#1}}}%
 %    \end{macrocode}
 %
@@ -7768,7 +7782,7 @@
 \begin{document}
 
 \title{Color conversion with the \textsf{xcolor} package --- Examples}
-\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{xcolor at ukern.de}.}}
+\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{https://github.com/latex3/xcolor/issues}.}}
 \date{\XCfileversion{} (\XCfiledate)}
 \maketitle
 
@@ -7820,7 +7834,7 @@
 \usepackage{pstricks,pst-tree,pst-slpe,multido}
 \makeatletter
 \makeatother
-\usepackage{fvrb-ex}
+\usepackage{fancyvrb-ex}
 
 \def\textfraction{0.01}
 \def\topfraction{0.99}
@@ -7832,7 +7846,7 @@
 
 \begin{document}
 \title{Color extensions with the \textsf{xcolor} package --- \textsf{pstricks} examples}
-\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{xcolor at ukern.de}.}}
+\author{Dr. Uwe Kern\thanks{This file is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors (\texttt{macros/latex/contrib/xcolor/}) or the homepage \texttt{www.ukern.de/tex/xcolor.html}. Please send error reports and suggestions for improvements to \texttt{https://github.com/latex3/xcolor/issues}.}}
 \date{\XCfileversion{} (\XCfiledate)}
 \maketitle
 
@@ -7964,7 +7978,7 @@
 \title{Color extensions with the \textsf{xcolor} package --- various examples}
 \author{\href{mailto:xcolor at ukern.de}{\fboxrule0pt\fboxsep2pt\fbox{Dr. Uwe Kern}}}
 \date{\XCfileversion{} (\XCfiledate)
-\thanks{This file (\texttt{\jobname.tex}) is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors \texttt{\href{http://www.ctan.org/tex-archive/macros/latex/contrib/xcolor/}{CTAN/macros/latex/contrib/xcolor/}} or the homepage \texttt{\href{http://www.ukern.de/tex/xcolor.html}{www.ukern.de/tex/xcolor.html}}. Please send error reports and suggestions for improvements to \texttt{\href{mailto:xcolor at ukern.de}{xcolor at ukern.de}}.}}
+\thanks{This file (\texttt{\jobname.tex}) is part of the \textsf{xcolor} distribution which can be downloaded from the CTAN mirrors \texttt{\href{http://www.ctan.org/tex-archive/macros/latex/contrib/xcolor/}{CTAN/macros/latex/contrib/xcolor/}} or the homepage \texttt{\href{http://www.ukern.de/tex/xcolor.html}{www.ukern.de/tex/xcolor.html}}. Please send error reports and suggestions for improvements to \url{https://github.com/latex3/xcolor/issues}.}}
 \maketitle
 
 The purpose of this file is to demonstrate a variety of capabilities including the logging facilities of the \textsf{xcolor} package.

Modified: trunk/Master/texmf-dist/tex/latex/xcolor/svgnam.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xcolor/svgnam.def	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/tex/latex/xcolor/svgnam.def	2021-11-01 20:35:03 UTC (rev 60925)
@@ -22,10 +22,11 @@
 %% in the same archive or directory.)
 %%
 \ProvidesFile{svgnam.def}
- [2016/05/11 v2.12 Predefined colors according to SVG 1.1 (UK)]
+ [2021/10/31 v2.13 Predefined colors according to SVG 1.1 (UK)]
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
 \def\colornameprefix{XC@}

Modified: trunk/Master/texmf-dist/tex/latex/xcolor/x11nam.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xcolor/x11nam.def	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/tex/latex/xcolor/x11nam.def	2021-11-01 20:35:03 UTC (rev 60925)
@@ -22,10 +22,11 @@
 %% in the same archive or directory.)
 %%
 \ProvidesFile{x11nam.def}
- [2016/05/11 v2.12 Predefined colors according to Unix/X11 (UK)]
+ [2021/10/31 v2.13 Predefined colors according to Unix/X11 (UK)]
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
 \def\colornameprefix{XC@}

Modified: trunk/Master/texmf-dist/tex/latex/xcolor/xcolor.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xcolor/xcolor.sty	2021-11-01 20:34:47 UTC (rev 60924)
+++ trunk/Master/texmf-dist/tex/latex/xcolor/xcolor.sty	2021-11-01 20:35:03 UTC (rev 60925)
@@ -22,14 +22,15 @@
 %% in the same archive or directory.)
 %%
 \ProvidesPackage{xcolor}
- [2016/05/11 v2.12 LaTeX color extensions (UK)]
+ [2021/10/31 v2.13 LaTeX color extensions (UK)]
 %%
 %% ----------------------------------------------------------------
-%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
+%% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
+%%               2021      LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
 %% Please send error reports and suggestions for
-%% improvements to the above email address.
+%% improvements to https://github.com/latex3/xcolor/issues.
 %%
 %% This package contains code copied from
 %%
@@ -64,7 +65,7 @@
 \@makeother\< \@makeother\= \@makeother\> \@makeother\? \@makeother\`
 \catcode94 7 %
 \catcode`\^^A=14 %
-\edef\XC@@{\expandafter\noexpand\csname\string\XC@@\endcsname}
+\edef\XC@@{\expandafter\noexpand\csname\@backslashchar XC@@\endcsname}
 \newif\ifcolors@ \colors at true
 \newif\ifcolorerrors@
 \newif\ifglobalcolors \globalcolorsfalse
@@ -188,9 +189,9 @@
         {\edef\@pdfborder{#1}\expandafter\XC at pdfborder\@pdfborder\relax}%
       \@break at tfor\fi}}}
 \providecommand*\Gin at driver{}
-\@tfor\@@tmp:={dvipdf}{dvipdfm}{dvipdfmx}{dvips}{dvipsone}{dviwin}%
+\@tfor\@@tmp:={dvipdf}{dvipdfmx}{dvips}{dvipsone}{dviwin}%
               {emtex}{luatex}{pctex32}{pctexhp}{pctexps}{pctexwin}{pdftex}%
-              {tcidvi}{textures}{truetex}{vtex}{xetex}\do
+              {tcidvi}{textures}{truetex}{vtex}{xetex}{dvisvgm}\do
  {\edef\@@tmp{\noexpand\DeclareOption{\@@tmp}%
     {\def\noexpand\Gin at driver{\@@tmp.def}}}%
   \@@tmp}
@@ -197,6 +198,7 @@
 \DeclareOption{dviwindo}{\ExecuteOptions{dvipsone}}
 \DeclareOption{oztex}{\ExecuteOptions{dvips}}
 \DeclareOption{xdvi}{\ExecuteOptions{dvips,monochrome}}
+\DeclareOption{dvipdfm}{\ExecuteOptions{dvipdfmx}}
 \DeclareOption{xcdraw}{\def\XC@@xcd@{1}}
 \DeclareOption{noxcdraw}{\def\XC@@xcd@{-1}}
 \DeclareOption{fixinclude}{\def\XC@@xcf@{1}}
@@ -505,7 +507,7 @@
       \toks@\expandafter{\@@drv}%
       \edef\@@tmp
        {\ifglobalcolors\global\else\xglobal@\fi
-        \noexpand\@namedef{\string\color@\@@nam}%
+        \noexpand\@namedef{\@backslashchar color@\@@nam}%
          {\noexpand\xcolor@{\@@cls}{\the\toks@}{\@@mod}{\@@clr}}}%
     \fi}%
   \expandafter\endgroup\@@tmp\xglobal at stop}
@@ -560,7 +562,7 @@
     \else
       \edef\@@tmp
        {\expandafter\expandafter\expandafter\@secondoffive
-         \csname\string\color@\@@clr\endcsname}%
+         \csname\@backslashchar color@\@@clr\endcsname}%
       \ifx\@@cls\@@tmp\XC@@tsttrue\fi
     \fi
   \fi\fi
@@ -579,7 +581,7 @@
    {\c at lor@error{`#2'}\let\@@tmp\@empty}%
    {\edef\@@tmp
      {\ifglobalcolors\global\else\xglobal@\fi
-      \noexpand\XC at let@cc{\string\color@#1}{\string\color@#2}}}}
+      \noexpand\XC at let@cc{\@backslashchar color@#1}{\@backslashchar color@#2}}}}
 \def\DefineNamedColor#1%
  {\@nameuse{XC@\ifdefinecolors defin\else prepar\fi ecolor}[#1]}
 \def\preparecolor{\@testopt{\XC at preparecolor}{}}
@@ -635,7 +637,7 @@
   \XC at sdef\@@mod{#2}%
   \@ifxempty{#4}{\extractcolorspec{#5}\@@clr}{\edef\@@clr{{#4}{#5}}}%
   \expandafter\convertcolorspec\@@clr\@@mod\@@clr
-  \@namexdef{\string\colorB@#1}{{\@@mod}{\@@clr}}%
+  \@namexdef{\@backslashchar colorB@#1}{{\@@mod}{\@@clr}}%
   \edef\@@met{#3}%
   \ifx\@@met\XC at met@last
     \@ifxempty{#6}{\extractcolorspec{#7}\@@tmp}{\edef\@@tmp{{#6}{#7}}}%
@@ -645,14 +647,14 @@
   \else
     \edef\@@tmp{#7}%
   \fi
-  \@namexdef{\string\colorD@#1}{{\@@met}{\@@tmp}}%
+  \@namexdef{\@backslashchar colorD@#1}{{\@@met}{\@@tmp}}%
   \endgroup}
 \def\resetcolorseries{\@testopt{\XC at resetcolorseries}{}}
 \def\XC at resetcolorseries[#1]#2%
  {\begingroup
   \@namexdef
-   {\string\color@#2}{\noexpand\xcolor@{}{}\@nameuse{\string\colorB@#2}}%
-  \XC at let@Nc\@@tmp{\string\colorD@#2}%
+   {\@backslashchar color@#2}{\noexpand\xcolor@{}{}\@nameuse{\@backslashchar colorB@#2}}%
+  \XC at let@Nc\@@tmp{\@backslashchar colorD@#2}%
   \edef\@@met{\expandafter\@firstoftwo\@@tmp}%
   \edef\@@tmp{\expandafter\@secondoftwo\@@tmp}%
   \ifx\@@met\XC at met@step\else
@@ -659,20 +661,20 @@
     \edef\@@scl{\@ifxempty{#1}\colorseriescycle{#1}}%
     \expandafter\XC at calc@\@@tmp,,,,:D%
   \fi
-  \@namexdef{\string\colorS@#2}{\@@tmp}%
+  \@namexdef{\@backslashchar colorS@#2}{\@@tmp}%
   \endgroup}
 \def\XC at step#1%
- {\let\xcolor@\@gobbletwo\edef\@@tmp{\@nameuse{\string\color@#1}}%
+ {\let\xcolor@\@gobbletwo\edef\@@tmp{\@nameuse{\@backslashchar color@#1}}%
   \expandafter\XC at st@p\@@tmp{#1}%
-  \@namexdef{\string\color@#1}{\noexpand\xcolor@{}{}{\@@mod}{\@@tmp}}}
+  \@namexdef{\@backslashchar color@#1}{\noexpand\xcolor@{}{}{\@@mod}{\@@tmp}}}
 \def\XC at st@p#1#2#3%
- {\def\@@mod{#1}\def\@@tmp{#2}\edef\@@vec{\@nameuse{\string\colorS@#3}}%
+ {\def\@@mod{#1}\def\@@tmp{#2}\edef\@@vec{\@nameuse{\@backslashchar colorS@#3}}%
   \@whilenum\@tempcnta>\z@\do
    {\XC at inflate\@@mod\@@tmp\@@vec\@@tmp
     \expandafter\XC at add\@@tmp,\@@tmp \expandafter\XC at calc@\@@tmp,,,,:U%
     \advance\@tempcnta\m at ne}}
 \def\XC at stepabs#1%
- {\edef\@@tmp{\@nameuse{\string\colorB@#1}}%
+ {\edef\@@tmp{\@nameuse{\@backslashchar colorB@#1}}%
   \expandafter\XC at st@p\@@tmp{#1}%
   \edef\@@tmp
    {\def\noexpand\@@mod{\@@mod}\def\noexpand\@@clr{\@@tmp}}}
@@ -750,7 +752,7 @@
   \edef\@@tmp{\noexpand\@undeclaredcolor[\@@mod]{\@@clr}}%
   \expandafter\endgroup\@@tmp}
 \def\XC at declaredc@lor
- {\XC at let@Nc\XC at current@color{\string\color@\XC@@tmp}%
+ {\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}}
@@ -761,7 +763,7 @@
   \color}
 \def\nopagecolor
  {\@ifundefined{no at page@color}%
-   {\PackageInfo{xcolor}{\string\nopagecolor\space is not supported}}%
+   {\PackageInfo{xcolor}{\@backslashchar nopagecolor\space is not supported}}%
    {\no at page@color}}
 \def\colorbox#1#{\protect\color at box{#1}}
 \def\color at box#1#2{\color at b@x\relax{\color#1{#2}}}
@@ -920,7 +922,7 @@
   \ifodd\count@\@tempswatrue\else\@tempswafalse\fi
   \@ifundefinedcolor\@@nam
    {\c at lor@error{`\@@nam'}\def\@@nam{black}}{}%
-  \let\xcolor@\@xcolor@\@nameuse{\string\color@\@@nam}}
+  \let\xcolor@\@xcolor@\@nameuse{\@backslashchar color@\@@nam}}
 \def\XC at postfix#1#2]#3\relax
  {\begingroup
   \if[#1\@tempcnta#2\relax\XC at stepabs\@@nam
@@ -954,11 +956,11 @@
   \fi
   \let\@@mod\XC at mod@hsb}
 \def\XC at display
- {\XC at bcolor\XC at let@cN{\string\color at .}\XC at current@color
+ {\XC at bcolor\XC at let@cN{\@backslashchar color at .}\XC at current@color
   \ifnum\XC at type{.}=1
     \PackageWarning{xcolor}{Incompatible color definition}\else
   \ifnum\XC at tracing>2
-    \begingroup \let\xcolor@\@empty \def\@nil{\string\@nil}%
+    \begingroup \let\xcolor@\@empty \def\@nil{\@backslashchar @nil}%
     \PackageInfo{xcolor}{Setting color `\XC at current@color'}%
     \endgroup
   \fi\fi
@@ -1033,11 +1035,11 @@
   \edef#3{\expandafter\@secondoftwo#3}}
 \def\XC at extract@hue#1,#2:#3{\edef#3{#1}}
 \def\XC at replace@hue#1,#2:#3,#4{\edef#4{#3,#2}}
-\def\@ifundefinedcolor#1{\@ifundefined{\string\color@#1}}
+\def\@ifundefinedcolor#1{\@ifundefined{\@backslashchar color@#1}}
 \def\@ifundefinedmodel#1{\@ifundefined{color@#1}}
 \def\XC at type#1%
  {\expandafter\expandafter\expandafter\XC at typ@
-  \csname\string\color@#1\endcsname\@empty\@empty\@empty\XC@@}
+  \csname\@backslashchar color@#1\endcsname\@empty\@empty\@empty\XC@@}
 \def\XC at typ@#1#2#3#4\XC@@
  {\ifx#1\relax 0\else
     \ifx#1\xcolor@
@@ -1048,11 +1050,13 @@
   \fi}
 \def\XC at info#1#2%
  {\XC at edef#2{#1}%
-  \if.#2\def#2{0}\else\expandafter\in@\expandafter>\expandafter{#2}%
+  \expandafter\in@\expandafter>\expandafter{#2}%
   \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\edef#2{\noexpand\in@{/-}{/#2}}#2%
-  \edef#2{\ifin at 2\else1\fi}\fi\fi\fi\fi}
+  \ifin@\def#2{2}\else % now there's no >,:,!
+  \if-\expandafter\@car#2\@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@}
 \def\XC at tracingcolors{\aftergroupdef\XC at tracing{\the\count@}}
 \tracingcolors=0
@@ -1393,7 +1397,7 @@
     \expandafter\expandafter\expandafter\c at lor@to at ps#1#2\@@
   \else
     \expandafter\expandafter\expandafter\expandafter\expandafter\expandafter
-    \expandafter\c at lor@to at ps\csname\string\color@#1#2\endcsname\@@
+    \expandafter\c at lor@to at ps\csname\@backslashchar color@#1#2\endcsname\@@
   \fi
   \space}
 \let\XC at c@lor at to@ps\XC at usecolor
@@ -1406,15 +1410,15 @@
  {{dvipdf,dvipdfm,dvipdfmx,dvips,pctex32}%
   {\def\c at lor@@named#1,#2,#3\@@#4%
     {\edef#4{\expandafter\expandafter\expandafter\@thirdoffive
-             \csname\string\color@#1\endcsname}}
+             \csname\@backslashchar color@#1\endcsname}}
    \def\define at color@named#1#2%
-    {\@namedef{\string\color@#1}{{}{}{ \colornameprefix#1}{}{}}}}%
+    {\@namedef{\@backslashchar color@#1}{{}{}{ \colornameprefix#1}{}{}}}}%
   {dvipsone,luatex,pctexps,pdftex,tcidvi,truetex,vtex,xetex}%
   {\def\c at lor@@named#1,#2,#3\@@#4%
     {\edef#4{\expandafter\expandafter\expandafter\@thirdoffive
-             \csname\string\color@#1\endcsname}}
+             \csname\@backslashchar color@#1\endcsname}}
    \def\define at color@named#1#2%
-    {\let\@@cls\@empty\@namedef{\string\color@#1}{{}{}{#2}{}{}}}}%
+    {\let\@@cls\@empty\@namedef{\@backslashchar color@#1}{{}{}{#2}{}{}}}}%
   {textures}%
   {\def\c at lor@@named#1,#2,#3\@@#4%
     {\edef\@tempa{\color at P@custom{#1}{\if!#2!1\else#2\fi}}%
@@ -1424,7 +1428,7 @@
    \def\c at lor@ps@#1 #2\@@
     {\expandafter\expandafter\expandafter\expandafter\expandafter
      \expandafter\expandafter\c at lor@to at ps@
-     \csname\string\color@#1\expandafter\endcsname\space
+     \csname\@backslashchar color@#1\expandafter\endcsname\space
      #2. \@@{#1}}}%
  }{}
 \definecolorset{rgb/hsb/cmyk/gray}{}{}%



More information about the tex-live-commits mailing list.