[latex3-commits] [git/LaTeX3-latex3-xcolor] changekeyhandler: remove rowcolors and colortlb patches, this is now handled by colortbl (1715b44)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jul 30 20:43:01 CEST 2022


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

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

commit 1715b44df26ffb6ad9a5528adbb793f8951f9afb
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jul 30 20:43:01 2022 +0200

    remove rowcolors and colortlb patches, this is now handled by colortbl


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

1715b44df26ffb6ad9a5528adbb793f8951f9afb
 ChangeLog  |   7 ++++
 xcolor.dtx | 109 -------------------------------------------------------------
 2 files changed, 7 insertions(+), 109 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 48ac99b..2237765 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,13 @@ https://github.com/latex3/xcolor/issues
 
 History
 =======
+unreleased
+* 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 is detected 
+* The new LaTeX key/val handler is used
+* rowcolors command has moved to the colortbl package
+
+
 2022/06/12 v2.14
 * New features:
     - Load if it exists the code from LaTeX to define \mathcolor.
diff --git a/xcolor.dtx b/xcolor.dtx
index 39483a7..2e3e8ee 100644
--- a/xcolor.dtx
+++ b/xcolor.dtx
@@ -5927,115 +5927,6 @@
 % \end{macro}
 %
 %
-% \subsubsection{Colored rows in tables}
-%
-% The following definitions make only sense if the \Package{colortbl} package
-% has been loaded and if \Package{colortbl} doesn't already define the commands.
-%    \begin{macrocode}
-\AddToHook{package/colortbl/after}{%
-%    \end{macrocode}
-%
-% \begin{macro}{\rowcolors}
-% \begin{macro}{\rowcolors*}
-%   \oarg{commands}\marg{row}\marg{odd-row color}\marg{even-row color}\\
-% Defines alternating colors for the next tabular environment.
-% Starting with row \Meta{row}, odd and even rows get their respective colors.
-% The color arguments may also be left empty (= no color).
-% Optional commands may be |\hline| or |\noalign|\marg{stuff}.
-%    \begin{macrocode}
- \def\rowcolors
-  {\@ifstar{\@rowcmdfalse\rowc at lors}{\@rowcmdtrue\rowc at lors}}
-%    \end{macrocode}
-%
-%    \begin{macrocode}
- \def\rowc at lors{\@testopt{\rowc at l@rs}{}}
-%    \end{macrocode}
-%
-%    \begin{macrocode}
- \def\rowc at l@rs[#1]#2#3#4%
-  {\global\rownum=\z@
-   \global\@rowcolorstrue
-   \@ifxempty{#3}%
-     {\def\@oddrowcolor{\@norowcolor}}%
-     {\def\@oddrowcolor{\gdef\CT at row@color{\CT at color{#3}}}}%
-   \@ifxempty{#4}%
-     {\def\@evenrowcolor{\@norowcolor}}%
-     {\def\@evenrowcolor{\gdef\CT at row@color{\CT at color{#4}}}}%
-   \if at rowcmd
-     \def\@rowcolors
-      {#1\if at rowcolors
-         \noalign{\relax\ifnum\rownum<#2\@norowcolor\else
-                  \ifodd\rownum\@oddrowcolor\else\@evenrowcolor\fi\fi}%
-       \fi}%
-   \else
-     \def\@rowcolors
-      {\if at rowcolors
-         \ifnum\rownum<#2\noalign{\@norowcolor}\else
-         #1\noalign{\ifodd\rownum\@oddrowcolor\else\@evenrowcolor\fi}\fi
-       \fi}%
-   \fi
-   \CT at everycr{\@rowc at lors\the\everycr}%
-   \ignorespaces}
-%    \end{macrocode}
-%
-%    \begin{macrocode}
- \def\@rowc at lors{\noalign{\global\advance\rownum\@ne}\@rowcolors}
- \let\@rowcolors\@empty
-%    \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\showrowcolors}
-% \begin{macro}{\hiderowcolors}
-% Switch coloring mode on/off.
-%    \begin{macrocode}
- \def\showrowcolors{\noalign{\global\@rowcolorstrue}\@rowcolors}
- \def\hiderowcolors{\noalign{\global\@rowcolorsfalse\@norowcolor}}
- \def\@norowcolor{\global\let\CT at row@color\relax}
- \@norowcolor
-%    \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\if at rowcolors}
-% \begin{macro}{\if at rowcmd}
-%    \begin{macrocode}
- \newif\if at rowcolors
- \newif\if at rowcmd
-%    \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\rownum}
-% Reserve a counter register.
-%    \begin{macrocode}
- \@ifundefined{rownum}{\newcount\rownum}{}
-%    \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\CT at extract}
-% This is a fix for active `!' character to enable color expressions; it is apparently only necessary for |\columncolor| commands within |\multicolumn|.
-%    \begin{macrocode}
- \def\CT at extract#1\columncolor#2#3\@nil
-  {\if!#2%
-     \let\CT at column@color\@empty
-   \else
-     \if[#2%]
-       \expandafter\CT at extractb
-     \else
-       \XC at edef\XC@@tmp{#2}%
-       \edef\CT at column@color{\noexpand\CT at color{\XC@@tmp}}%
-       \expandafter\CT at extractd
-     \fi
-     {#1}#3\@nil
-   \fi}
-%    \end{macrocode}
-% \end{macro}
-%
-% End of conditional code for colored tables.
-%    \begin{macrocode}
-}{}
-%    \end{macrocode}
 %
 %
 % \subsubsection{Color information}





More information about the latex3-commits mailing list.