%%
%% This is file `lwarp-colortbl.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lwarp.dtx  (with options: `colortbl')
%% This is a generated file.
%% Copyright 2016-2025 Brian Dunn
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% 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.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
\let\rowcolor\relax

\LWR@ProvidesPackagePass{colortbl}[2022/06/20]
\ProvideDocumentCommand{\columncolor}{O{named} m o o}{}%

\NewDocumentCommand{\LWR@HTML@columncolor}{O{named} m o o}{%
    \convertcolorspec{#1}{#2}{HTML}\LWR@columnHTMLcolor%
    \LWR@addtabularcellcolor%
}

\AtBeginDocument{\LWR@formatted{columncolor}}
\NewDocumentCommand{\LWR@HTML@rowcolor}{O{named} m o o}{%
    \convertcolorspec{#1}{#2}{HTML}\LWR@rowHTMLcolor%
    \LWR@getmynexttoken%
}

\AtBeginDocument{\LWR@expandableformatted{rowcolor}}
\NewDocumentCommand{\LWR@HTML@cellcolor}{O{named} m o o}{%
    \convertcolorspec{#1}{#2}{HTML}\LWR@cellHTMLcolor%
    \LWR@addtabularcellcolor%
}

\AtBeginDocument{\LWR@formatted{cellcolor}}

\newcommand{\LWR@HTML@arrayrulecolor}[2][named]{%
    \convertcolorspec{#1}{#2}{HTML}\LWR@ruleHTMLcolor%
}

\AtBeginDocument{\LWR@expandableformatted{arrayrulecolor}}

\newcommand{\LWR@HTML@arrayrulecolornexttoken}[2][named]{%
    \convertcolorspec{#1}{#2}{HTML}\LWR@ruleHTMLcolor%
    \LWR@getmynexttoken%
}

\AtBeginDocument{\LWR@expandableformatted{arrayrulecolornexttoken}}

\newcommand{\LWR@HTML@doublerulesepcolor}[2][named]{}

\AtBeginDocument{\LWR@expandableformatted{doublerulesepcolor}}

\newcommand{\LWR@HTML@doublerulesepcolornexttoken}[2][named]{\LWR@getmynexttoken}

\AtBeginDocument{\LWR@expandableformatted{doublerulesepcolornexttoken}}

\newcommand*{\LWR@xcolortempcolor}{}

\VerifyCommand[lwarp][colortbl]{\rowc@l@rs}{A66C3974E0C5BD5C3DDE033367D197A4}

\def\rowc@l@rs[#1]#2#3#4%
{%
   \global\rownum=1%        lwarp
   \global\@rowcolorstrue%
   \@ifxempty{#3}%
     {\def\@oddrowcolor{\@norowcolor}}%
     {%
        \convertcolorspec{named}{#3}{HTML}\LWR@xcolortempcolor%     lwarp
        \edef\@oddrowcolor{%
            \csdef{LWR@xcolorrowHTMLcolor}{\LWR@xcolortempcolor}%   lwarp
        }%
     }%
   \@ifxempty{#4}%
     {\def\@evenrowcolor{\@norowcolor}}%
     {%
        \convertcolorspec{named}{#4}{HTML}\LWR@xcolortempcolor%     lwarp
        \edef\@evenrowcolor{%
            \csdef{LWR@xcolorrowHTMLcolor}{\LWR@xcolortempcolor}%   lwarp
        }%
     }%
   \if@rowcmd
     \def\@rowcolors
     {%
        \if@rowcolors
            \relax\ifnum\rownum<#2\@norowcolor\else
            \ifodd\rownum\@oddrowcolor\else\@evenrowcolor\fi\fi%
        \fi%
     }%
   \else
     \def\@rowcolors
     {%
        \if@rowcolors
            \ifnum\rownum<#2%
                \@norowcolor
            \else
                \ifodd\rownum\@oddrowcolor\else\@evenrowcolor\fi%
            \fi
        \fi%
     }%
   \fi
   \ignorespaces%
}
\def\@norowcolor{%
    \renewcommand{\LWR@xcolorrowHTMLcolor}{}%
}

\def\@rowc@lors{%
        \advance\rownum\@ne%
    \@rowcolors%
}

\begin{warpMathJax}

\CustomizeMathJax{\require{colortbl}}
\CustomizeMathJax{\let\LWRorigcolumncolor\columncolor}
\CustomizeMathJax{\renewcommand{\columncolor}[2][named]{%
    \LWRorigcolumncolor[#1]{#2}%
    \LWRabsorbtwooptions%
}}

\CustomizeMathJax{\let\LWRorigrowcolor\rowcolor}
\CustomizeMathJax{\renewcommand{\rowcolor}[2][named]{%
    \LWRorigrowcolor[#1]{#2}%
    \LWRabsorbtwooptions%
}}

\CustomizeMathJax{\let\LWRorigcellcolor\cellcolor}
\CustomizeMathJax{\renewcommand{\cellcolor}[2][named]{%
    \LWRorigcellcolor[#1]{#2}%
    \LWRabsorbtwooptions%
}}

\end{warpMathJax}


\endinput
%%
%% End of file `lwarp-colortbl.sty'.