summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty44
1 files changed, 22 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty
index 984da43d311..1f9a65b90c3 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-colortbl.sty
@@ -15,48 +15,48 @@
%% 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.
-\LWR@ProvidesPackagePass{colortbl}
-
-\LetLtxMacro\LWR@origcolumncolor\columncolor
-\LetLtxMacro\LWR@origrowcolor\rowcolor
-\LetLtxMacro\LWR@origcellcolor\cellcolor
-\LetLtxMacro\LWR@origarrayrulecolor\arrayrulecolor
-\LetLtxMacro\LWR@origdoublerulesepcolor\doublerulesepcolor
-
-\appto\LWR@restoreorigformatting{%
-\LetLtxMacro\columncolor\LWR@origcolumncolor%
-\LetLtxMacro\rowcolor\LWR@origrowcolor%
-\LetLtxMacro\cellcolor\LWR@origcellcolor%
-\LetLtxMacro\arrayrulecolor\LWR@origarrayrulecolor%
-\LetLtxMacro\doublerulesepcolor\LWR@origdoublerulesepcolor%
-}
+\let\rowcolor\relax
-\RenewDocumentCommand{\LWR@HTMLcolumncolor}{O{named} m o o}{%
+\LWR@ProvidesPackagePass{colortbl}
+\NewDocumentCommand{\LWR@HTML@columncolor}{O{named} m o o}{%
\convertcolorspec{#1}{#2}{HTML}\LWR@columnHTMLcolor%
\LWR@addtabularcellcolor%
}
-\RenewDocumentCommand{\LWR@HTMLrowcolor}{O{named} m o o}{%
+
+\LWR@formatted{columncolor}
+\NewDocumentCommand{\LWR@HTML@rowcolor}{O{named} m o o}{%
\convertcolorspec{#1}{#2}{HTML}\LWR@rowHTMLcolor%
\LWR@getmynexttoken%
}
-\RenewDocumentCommand{\LWR@HTMLcellcolor}{O{named} m o o}{%
+\LWR@expandableformatted{rowcolor}
+\NewDocumentCommand{\LWR@HTML@cellcolor}{O{named} m o o}{%
\convertcolorspec{#1}{#2}{HTML}\LWR@cellHTMLcolor%
\LWR@addtabularcellcolor%
}
-\renewcommand{\arrayrulecolor}[2][named]{%
+\LWR@formatted{cellcolor}
+
+\newcommand{\LWR@HTML@arrayrulecolor}[2][named]{%
\convertcolorspec{#1}{#2}{HTML}\LWR@ruleHTMLcolor%
}
-\renewcommand{\LWR@HTMLarrayrulecolor}[2][named]{%
+\LWR@expandableformatted{arrayrulecolor}
+
+\newcommand{\LWR@HTML@arrayrulecolornexttoken}[2][named]{%
\convertcolorspec{#1}{#2}{HTML}\LWR@ruleHTMLcolor%
\LWR@getmynexttoken%
}
-\renewcommand{\doublerulesepcolor}[2][named]{}
+\LWR@expandableformatted{arrayrulecolornexttoken}
+
+\newcommand{\LWR@HTML@doublerulesepcolor}[2][named]{}
+
+\LWR@expandableformatted{doublerulesepcolor}
+
+\newcommand{\LWR@HTML@doublerulesepcolornexttoken}[2][named]{\LWR@getmynexttoken}
-\renewcommand{\LWR@HTMLdoublerulesepcolor}[2][named]{\LWR@getmynexttoken}
+\LWR@expandableformatted{doublerulesepcolornexttoken}
\endinput
%%