| 1 |
% colortbl.4ht (2025-02-18-10:11), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 1997-2009 Eitan M. Gurari |
| 3 |
% Copyright 2009-2025 TeX Users Group |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3c of this license or (at your option) any |
| 8 |
% later version. The latest version of this license is in |
| 9 |
% https://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3c or later is part of all distributions |
| 11 |
% of LaTeX version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status "maintained". |
| 14 |
% |
| 15 |
% The Current Maintainer of this work |
| 16 |
% is the TeX4ht Project <https://tug.org/tex4ht>. |
| 17 |
% |
| 18 |
% If you modify this program, changing the |
| 19 |
% version identification would be appreciated. |
| 20 |
\immediate\write-1{version 2025-02-18-10:11} |
| 21 |
|
| 22 |
|
| 23 |
\RequirePackage{xcolor} |
| 24 |
\CT@everycr{\o:noalign:{\global\let\CT@row@color\relax}\the\everycr} |
| 25 |
\def\columncolor#1{{\def\current@color{#1}% |
| 26 |
\csname a:cell-colortbl\endcsname}} |
| 27 |
\Odef\columncolor[#1]#2{{\if :#1:\def\current@color{#2}% |
| 28 |
\else |
| 29 |
\gHAdvance\tblcol:N by 1 |
| 30 |
\convertcolorspec{#1}{#2}{HTML}\tmp:tblcolor |
| 31 |
\Configure{HColor}{tblcol-\tblcol:N}{\#\tmp:tblcolor}% |
| 32 |
\def\current@color{tblcol-\tblcol:N}% |
| 33 |
\fi |
| 34 |
\csname a:cell-colortbl\endcsname}% |
| 35 |
\futurelet\:temp\left:colcol} |
| 36 |
\def\left:colcol{% |
| 37 |
\ifx [\:temp \expandafter\left::colcol \fi |
| 38 |
} |
| 39 |
\def\left::colcol[#1]{ |
| 40 |
\futurelet\:temp\right:colcol |
| 41 |
} |
| 42 |
\def\right:colcol{% |
| 43 |
\ifx [\:temp \expandafter\right::colcol \fi |
| 44 |
} |
| 45 |
\def\right::colcol[#1]{} |
| 46 |
\HAssign\tblcol:N = 0 |
| 47 |
\def\CT@cellc#1[#2]#3{{\if :#2:\def\current@color{#3}% |
| 48 |
\else |
| 49 |
\gHAdvance\tblcol:N by 1 |
| 50 |
\convertcolorspec{#2}{#3}{HTML}\tmp:tblcolor |
| 51 |
\Configure{HColor}{tblcol-\tblcol:N}{\#\tmp:tblcolor}% |
| 52 |
\def\current@color{tblcol-\tblcol:N}% |
| 53 |
\fi |
| 54 |
\csname a:cell-colortbl\endcsname}% |
| 55 |
\futurelet\:temp\left:colcol} |
| 56 |
\NewConfigure{@classz}{4} |
| 57 |
\pend:def\@classz{\pic:gobble\a:@classz} |
| 58 |
\append:def\@classz{\pic:gobble\b:@classz} |
| 59 |
\pend:def\insert@column{\pic:gobble\c:@classz} |
| 60 |
\append:def\insert@column{\pic:gobble\d:@classz} |
| 61 |
\def\:temp{\global\let\CT@do@color\relax} |
| 62 |
\HLet\CT@@do@color\:temp |
| 63 |
\let\::maketitle\o:maketitle: |
| 64 |
\def\o:maketitle:{% |
| 65 |
\ifx \EndPicture\:UnDef |
| 66 |
\NewConfigure{@classz}{4}% |
| 67 |
\Configure{@classz}{}{}{}{}% |
| 68 |
\fi |
| 69 |
\::maketitle } |
| 70 |
\def\rowcolor{% |
| 71 |
\o:noalign:{\ifnum0=`}\fi |
| 72 |
\global\let\CT@do@color\CT@@do@color |
| 73 |
% |
| 74 |
\@ifnextchar[\CT@rowa\CT@rowb} |
| 75 |
\def\CT@rowa[#1]#2{% |
| 76 |
\save:color#1 #2//% |
| 77 |
\pic:gobbleII\a:rowcolor{#2}% |
| 78 |
\gdef\CT@row@color{\CT@color{#2}}% |
| 79 |
\CT@rowc} |
| 80 |
\def\CT@rowb#1{% |
| 81 |
\pic:gobbleII\a:rowcolor{#1}% |
| 82 |
\gdef\CT@row@color{\CT@color{#1}}% |
| 83 |
\CT@rowc} |
| 84 |
\NewConfigure{rowcolor}{1} |
| 85 |
\HRestore\arrayrulecolor |
| 86 |
\HLet\arrayrulecolor\tmp:arrayrulecolor |
| 87 |
\def\save:color#1 #2//{% |
| 88 |
\convert:colorspec#2 {} {} {} {} |
| 89 |
\convertcolorspec{#1}{\current:color}{HTML}\tmp:col |
| 90 |
\def\current@color{#2} |
| 91 |
\Configure{HColor}{\current@color}{\#\tmp:col} |
| 92 |
} |
| 93 |
|
| 94 |
\def\begin:current@color{\let\sv:curcolor\current@color} |
| 95 |
\def\end:current@color{% |
| 96 |
\ifx \current@color\sv:curcolor |
| 97 |
\else% |
| 98 |
\expandafter\save:color\current@color//% |
| 99 |
\csname a:text-colortbl\endcsname |
| 100 |
\fi |
| 101 |
} |
| 102 |
\NewConfigure{text-colortbl}{1} |
| 103 |
\def\GET@column@color{} |
| 104 |
\def\color:ii[#1]#2#3!*?: {\def\:temp{#1 #2}} |
| 105 |
\def\color:i#1#2!*?: {\def\:temp{#1}} |
| 106 |
\let\ctbl:mcol\multicolumn |
| 107 |
\def\multicolumn#1#2#3{% |
| 108 |
\ctbl:mcol{#1}{#2}{#3}% |
| 109 |
\expand:after{\expandafter\MUL:LMN\meaning\@preamble}\MUL:PA//% |
| 110 |
\ignorespaces} |
| 111 |
{ |
| 112 |
\def\MUL:PA{\gdef\MUL:PA} |
| 113 |
\def\MUL:LMN{% |
| 114 |
\catcode`\C=12 |
| 115 |
\catcode`\T=12 |
| 116 |
\catcode`\@=12 |
| 117 |
\catcode`\c=12 |
| 118 |
\catcode`\o=12 |
| 119 |
\catcode`\l=12 |
| 120 |
\catcode`\r=12 |
| 121 |
\catcode`\t=12 |
| 122 |
\catcode`\e=12 |
| 123 |
\catcode`\m=12 |
| 124 |
\catcode`\p=12 |
| 125 |
\catcode`\d=12 |
| 126 |
\catcode`\i=12 |
| 127 |
\catcode`\b=12 |
| 128 |
\gdef\MUL:LMN} |
| 129 |
\MUL:LMN#1CT@color #2@tempdimb#3//{\::KOLOR{#2}} |
| 130 |
\MUL:PA{CT@color @tempdimb} |
| 131 |
} |
| 132 |
\def\::KOLOR#1{\if :#1:\else \:KOLOR#1//% |
| 133 |
\fi} |
| 134 |
\def\:KOLOR{\@ifnextchar[\mc:clr{\mc:clr[]}} |
| 135 |
{ |
| 136 |
\catcode`\{=12 |
| 137 |
\catcode`\}=12 |
| 138 |
\catcode`\(=1 |
| 139 |
\catcode`\)=2 |
| 140 |
\gdef\mc:clr[#1]{#2}((% |
| 141 |
\def\current@color(\if :#1:\else #1 \fi #2)% |
| 142 |
\csname a:cell-colortbl\endcsname |
| 143 |
)\def\:temp##1//()\:temp) |
| 144 |
) |
| 145 |
\NewConfigure{cell-colortbl}{1} |
| 146 |
|
| 147 |
|
| 148 |
\Hinput{colortbl} |
| 149 |
\endinput |
| 150 |
|