Skip to content

Commit

Permalink
add \relax to improve error context lines
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Mar 13, 2024
1 parent 01e1f1f commit f06a8cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 11 additions & 6 deletions xcolor.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -6458,7 +6463,7 @@
%
% \begin{macro}{\XC@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

This comment has been minimized.

Copy link
@muzimuzhi

muzimuzhi Mar 13, 2024

stray "w"

% \begin{macrocode}
\def\XC@cnv@gray#1,%
{\XC@ifxcase\tm
Expand Down

0 comments on commit f06a8cc

Please sign in to comment.