summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/xcolor
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-11-15 21:09:20 +0000
committerKarl Berry <karl@freefriends.org>2023-11-15 21:09:20 +0000
commit7d2b63ca0feb2c0a5989f889fb9c15e76a5a6d06 (patch)
tree2323b1fd036e09c44ac7660e5f6e7f7d81786737 /Master/texmf-dist/source/latex/xcolor
parent5ebac73000415d0d7644691d0ad784cf2372402d (diff)
xcolor (15nov23)
git-svn-id: svn://tug.org/texlive/trunk@68864 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/xcolor')
-rw-r--r--Master/texmf-dist/source/latex/xcolor/xcolor.dtx45
1 files changed, 29 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/xcolor/xcolor.dtx b/Master/texmf-dist/source/latex/xcolor/xcolor.dtx
index 8e914bc8897..5af54596822 100644
--- a/Master/texmf-dist/source/latex/xcolor/xcolor.dtx
+++ b/Master/texmf-dist/source/latex/xcolor/xcolor.dtx
@@ -18,8 +18,8 @@
%%
%</package>
%<*extract|driver|test1|test2|test3|test4>
-\def\XCfileversion{v3.00}%
-\def\XCfiledate{2023/11/11}%
+\def\XCfileversion{v3.01}%
+\def\XCfiledate{2023/11/15}%
%</extract|driver|test1|test2|test3|test4>
%
% This file may be distributed and/or modified under the
@@ -3143,11 +3143,15 @@
%
% \subsection*{History}
% \addcontentsline{toc}{subsection}{History}
+% \subsubsection*{2023/11/15 v3.01}
+% \begin{itemize}
+% \item only warn and not error if obsolete option usenames is used (issue \#31)
+% \end{itemize}
% \subsubsection*{2023/11/11 v3.00}
% \begin{itemize}
% \item if a \LaTeX{} older than 2022-06-01 is detected a frozen version is used.
% All new features apply only if LaTeX 2022-06-01 or newer is detected.
-% The frozen version can also be requested with \verb+\usepackage{xcolor}[=v2]+
+% The frozen version can also be requested with \verb+\usepackage{xcolor}[=v2]+
% \item The new LaTeX key/val handler is used for the package options.
% That means there will be fewer option clash errors (issue \#29).
% item The |\rowcolors| command has moved to the |colortbl| package and is no longer
@@ -3156,15 +3160,15 @@
% \item Extended |\normalcolor| to set also the dot color, issue \#19
% \item Fix Gray color model, issue \#23
% \end{itemize}
-%
+%
% \subsubsection*{2022/06/12 v2.14}
% \begin{itemize}
% \item Load code from \LaTeX\ to define |\mathcolor| if it is available.
% \item Bug fixes:
% \begin{itemize}
% \item Modify |\XC@info| to avoid spurious error from |\colorlet{foo}{}|, issue \#12
-% \item make |\normalcolor|, |\colorbox|, |\fcolorbox|, |\textcolor|, |\pagecolor|,
-% |\nopagecolor|, |\definecolor|, |\DefineNamedColor|
+% \item make |\normalcolor|, |\colorbox|, |\fcolorbox|, |\textcolor|, |\pagecolor|,
+% |\nopagecolor|, |\definecolor|, |\DefineNamedColor|
% protected as in |color.sty|, issue \#17
% \end{itemize}
% \end{itemize}
@@ -4031,17 +4035,9 @@
{
table .code ={\AddToHook{package/xcolor/after}{\RequirePackage{colortbl}}}
,table .usage = preamble
-% \end{macrocode}
-%
-% These options are obsolete and only added for compatibility.
-% \begin{macrocode}
- ,hyperref .code = {}
- ,fixpdftex .code = {}
}
% \end{macrocode}
%
-%
-%
% \subsubsection{Driver options}
%
% \begin{macro}{\Gin@driver}
@@ -4115,7 +4111,25 @@
}
% \end{macrocode}
%
-% All other options (including \LC's \oOption{usenames}, \oOption{nodvipsnames}) error.
+% \subsubsection{Obsolete options}
+% The following options are obsolete but perhaps still around in the wild,
+% so we generate a warning.
+% \begin{macrocode}
+\DeclareKeys
+ {
+ ,usenames .code =
+ {\PackageWarning{xcolor}{Package option `usenames' is obsolete and ignored}}
+ ,usename .usage = preamble
+ ,hyperref .code =
+ {\PackageWarning{xcolor}{Package option `hyperref' is obsolete and ignored}}
+ ,hyperref .usage = preamble
+ ,fixpdftex .code =
+ {\PackageWarning{xcolor}{Package option `fixpdftex' is obsolete and ignored}}
+ ,fixpdftex .usage = preamble
+ }
+% \end{macrocode}
+%
+% All other options (including \LC's \oOption{nodvipsnames}) error.
%
% Choose default options:
% \begin{macrocode}
@@ -4125,7 +4139,6 @@
\SetKeys{natural,showerrors}
% \end{macrocode}
%
-%
% \subsubsection{Processing options}
%
% A local configuration file may declare more options.