diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty index 21fc08d2864..73423c71bbe 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty @@ -18,6 +18,8 @@ \let\rowcolor\relax \LWR@ProvidesPackagePass{colortbl}[2018/12/12] +\ProvideDocumentCommand{\columncolor}{O{named} m o o}{}% + \NewDocumentCommand{\LWR@HTML@columncolor}{O{named} m o o}{% \convertcolorspec{#1}{#2}{HTML}\LWR@columnHTMLcolor% \LWR@addtabularcellcolor% @@ -59,9 +61,26 @@ \AtBeginDocument{\LWR@expandableformatted{doublerulesepcolornexttoken}} \begin{warpMathJax} -\CustomizeMathJax{\newcommand{\columncolor}[2][]{\LWRabsorbtwooptions}} -\CustomizeMathJax{\let\rowcolor\columncolor} -\CustomizeMathJax{\let\cellcolor\columncolor} + +\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 |