From 0396814223158484c2f424d382bcd670de158d82 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 29 Sep 2021 03:02:14 +0000 Subject: CTAN sync 202109290302 --- support/TeX4ht/source/ChangeLog | 5 +++++ support/TeX4ht/source/tex4ht-html4.tex | 22 ++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) (limited to 'support') diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 45b3c47aef..fb6049c959 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,8 @@ +2021-09-28 Michal Hoftich + + * tex4ht-html4.tex (html4.4ht): support for change of booktabs rule colors. + https://tex.stackexchange.com/q/615729/2891 + 2021-09-26 Michal Hoftich * tex4ht-html4.tex (html4.4ht): draw table lines in \hline using CSS. diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index 859ee361c5..e8e952e56b 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 986 2021-09-26 18:06:30Z michal_h21 $ +% $Id: tex4ht-html4.tex 988 2021-09-28 21:06:02Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -22256,28 +22256,38 @@ font commands \<<< + +| + \Configure{toprule} {|% \Css{tr\#TBL-\TableNo-\ifnum \HRow=0 - 1- td{border-top:| solid} + 1- {border-top:| solid \#\hline:color;} \else - \HRow- td{border-bottom:| solid} + \HRow- {border-bottom:| solid \#\hline:color;} \fi }} \Configure{bottomrule} {|% \Css{tr\#TBL-\TableNo-\HRow- - td{border-bottom:| solid}}} + {border-bottom:| solid \#\hline:color}}} \Configure{midrule} {|% \Css{tr\#TBL-\TableNo-\HRow- - td{border-bottom:| solid}}} + {border-bottom:| solid \#\hline:color}}} \Configure{cmidrule} {|% - \Css{td\#TBL-\TableNo-\HRow-\HCol{border-bottom:| solid}}% + \Css{td\#TBL-\TableNo-\HRow-\HCol{border-bottom:| solid \#\hline:color}}% \HCode{}} >>> +The \verb|\hline:color| macro is defined by TeX4ht configuration for colortbl.sty. +We reuse it to support change of rule colors. It is initialized as black. + +\<<< +\def\hline:color{000} +>>> + The cmidrule introduces ruler segments at different rows, instead of all of -- cgit v1.2.3