[latex3-commits] [latex3/xcolor] main: add \relax to improve error context lines (f06a8cc)

github at latex-project.org github at latex-project.org
Wed Mar 13 11:56:31 CET 2024


Repository : https://github.com/latex3/xcolor
On branch  : main
Link       : https://github.com/latex3/xcolor/commit/f06a8ccf19e48b559b6147cce198d5b6b53077f2

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

commit f06a8ccf19e48b559b6147cce198d5b6b53077f2
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Wed Mar 13 10:56:31 2024 +0000

    add \relax to improve error context lines


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

f06a8ccf19e48b559b6147cce198d5b6b53077f2
 ChangeLog  |  4 ++++
 xcolor.dtx | 17 +++++++++++------
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a85977f..d09ca4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@ https://github.com/latex3/xcolor/issues
 
 History
 =======
+
+2024/03/13
+* Add \relax after \ProcessKeyOptions to improve error context lines
+
 2023/11/15 v3.01
 * only warn and not error if obsolete option usenames is used, issue #31
 
diff --git a/xcolor.dtx b/xcolor.dtx
index 1a46769..dd711c5 100644
--- a/xcolor.dtx
+++ b/xcolor.dtx
@@ -2,7 +2,7 @@
 %%
 %% ----------------------------------------------------------------
 %% Copyright (C) 2003-2021 by Dr. Uwe Kern <xcolor at ukern dot de>
-%%               2021-2023    LaTeX Project https://github.com/latex3/xcolor/issues
+%%               2021-2024    LaTeX Project https://github.com/latex3/xcolor/issues
 %% ----------------------------------------------------------------
 %%
 %<*package>
@@ -18,8 +18,8 @@
 %%
 %</package>
 %<*extract|driver|test1|test2|test3|test4>
-\def\XCfileversion{v3.01}%
-\def\XCfiledate{2023/11/15}%
+\def\XCfileversion{v3.02}%
+\def\XCfiledate{2024/03/13}%
 %</extract|driver|test1|test2|test3|test4>
 %
 % This file may be distributed and/or modified under the
@@ -4153,9 +4153,14 @@
 %    \end{macrocode}
 %
 % After the options are processed, load the appropriate driver file.
-% If a site wants a default driver (e.g., \Option{dvips}) it just needs to put |\ExecuteOptions{dvips}| in a \File{color.cfg} file.
+% If a site wants a default driver (e.g., \Option{dvips}) it just needs
+% to put |\ExecuteOptions{dvips}| in a \File{color.cfg} file.
+%
+% Note |\relax| added here to ensure that |\ProcessKeyOptions| not the following
+% |\edef| shows in error context lines for unknown options.
+% \changes{3.02}{2024-03-13}{Added \cs[relax}
 %    \begin{macrocode}
-\ProcessKeyOptions
+\ProcessKeyOptions\relax
 %    \end{macrocode}
 %
 % \begin{macro}{\XC@@drv}
@@ -6458,7 +6463,7 @@
 %
 % \begin{macro}{\XC at cnv@gray}
 %   \Meta{gray}|,|
-% \changes{3.0}{2022-08-10}{moved the patch from hycolor to correct Gray model, issue \#23}
+% \changes{3.0}{2022-08-10}{moved the patch from hycolor to correct Gray model, issue \#23}w
 %    \begin{macrocode}
 \def\XC at cnv@gray#1,%
  {\XC at ifxcase\tm





More information about the latex3-commits mailing list.