texlive[72480] Master/texmf-dist: colortbl \arrayrulecolor for
commits+karl at tug.org
commits+karl at tug.org
Sun Oct 6 23:25:33 CEST 2024
Revision: 72480
https://tug.org/svn/texlive?view=revision&revision=72480
Author: karl
Date: 2024-10-06 23:25:33 +0200 (Sun, 06 Oct 2024)
Log Message:
-----------
colortbl \arrayrulecolor for vertical table lines, tex4ht r1575
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1575
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2024-10-06 19:51:00 UTC (rev 72479)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2024-10-06 21:25:33 UTC (rev 72480)
@@ -1,3 +1,9 @@
+2024-10-06 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-html4.tex (html4.4ht): use Colortbl's \arrayrulecolor also
+ for vertical table lines.
+ https://tug.org/pipermail/tex4ht/2024q4/003589.html
+
2024-10-04 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (fancyvrb.4ht): added extra check for the
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex 2024-10-06 19:51:00 UTC (rev 72479)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex 2024-10-06 21:25:33 UTC (rev 72480)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1573 2024-10-03 14:04:04Z michal_h21 $
+% $Id: tex4ht-html4.tex 1575 2024-10-06 16:44:23Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -7661,7 +7661,7 @@
{}
{\xdef\col:Css{\col:Css
border-\ifnum \ar:cnt=0 left\else right\fi
- :solid black 0.4pt;}%
+ :1px solid \VBorder:color;}%
}{}{}%
}
{\ifx \col:Css\empty \else
@@ -7809,6 +7809,7 @@
\<html latex array/tabular Config 4.0t\><<<
\let\VBorder|=\empty \let\AllColMargins|=\empty
+\def\VBorder:color{black}
\Configure{VBorder}
{\let\VBorder|=\empty \let\AllColMargins|=\empty
\global\let\GROUPS|=\empty \HAssign\NewGroup = 0
@@ -7818,10 +7819,10 @@
% put vertical border for a column
\ifnum\ar:cnt > 0%
% in all other cases, we should put right border
- \Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid black;}}%
+ \Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid \VBorder:color;}}%
\else%
% columns are numbered from 1. if \ar:cnt == 0 then it is the left border
- \Css{\#TBL-\TableNo-1{border-left: 1px solid black;}}%
+ \Css{\#TBL-\TableNo-1{border-left: 1px solid \VBorder:color;}}%
\fi%
}
{\Advance:\NewGroup by 1
@@ -16479,6 +16480,9 @@
% redefine default table configuration and put the color rule
\def\a:HBorder{<tr class="hline" style="border-top:1px solid \#\hline:color">}
+
+% use the hline color also for vertial lines
+\def\VBorder:color{\#\hline:color}
% don't display <hr> elements in colored \hline
\Css{tr.hline td hr{display:none}}
>>>
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht 2024-10-06 19:51:00 UTC (rev 72479)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht 2024-10-06 21:25:33 UTC (rev 72480)
@@ -1,4 +1,4 @@
-% html4.4ht (2024-10-03-13:41), generated from tex4ht-html4.tex
+% html4.4ht (2024-10-06-14:09), generated from tex4ht-html4.tex
% Copyright 2009-2024 TeX Users Group
% Copyright 1997-2009 Eitan M. Gurari
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2024-10-03-13:41}
+\immediate\write-1{version 2024-10-06-14:09}
\exit:ifnot{8859-6,%
CJK,%
@@ -3009,7 +3009,7 @@
{}
{\xdef\col:Css{\col:Css
border-\ifnum \ar:cnt=0 left\else right\fi
- :solid black 0.4pt;}%
+ :1px solid \VBorder:color;}%
}{}{}%
}
{\ifx \col:Css\empty \else
@@ -3107,6 +3107,7 @@
\Configure{arrayparbox}{\ShowPar}
\fi
\let\VBorder\empty \let\AllColMargins\empty
+\def\VBorder:color{black}
\Configure{VBorder}
{\let\VBorder\empty \let\AllColMargins\empty
\global\let\GROUPS\empty \HAssign\NewGroup = 0
@@ -3116,10 +3117,10 @@
% put vertical border for a column
\ifnum\ar:cnt > 0%
% in all other cases, we should put right border
- \Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid black;}}%
+ \Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid \VBorder:color;}}%
\else%
% columns are numbered from 1. if \ar:cnt == 0 then it is the left border
- \Css{\#TBL-\TableNo-1{border-left: 1px solid black;}}%
+ \Css{\#TBL-\TableNo-1{border-left: 1px solid \VBorder:color;}}%
\fi%
}
{\Advance:\NewGroup by 1
@@ -21041,7 +21042,7 @@
{}
{\xdef\col:Css{\col:Css
border-\ifnum \ar:cnt=0 left\else right\fi
- :solid black 0.4pt;}%
+ :1px solid \VBorder:color;}%
}{}{}%
}
{\ifx \col:Css\empty \else
@@ -21139,6 +21140,7 @@
\Configure{arrayparbox}{\ShowPar}
\fi
\let\VBorder\empty \let\AllColMargins\empty
+\def\VBorder:color{black}
\Configure{VBorder}
{\let\VBorder\empty \let\AllColMargins\empty
\global\let\GROUPS\empty \HAssign\NewGroup = 0
@@ -21148,10 +21150,10 @@
% put vertical border for a column
\ifnum\ar:cnt > 0%
% in all other cases, we should put right border
- \Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid black;}}%
+ \Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid \VBorder:color;}}%
\else%
% columns are numbered from 1. if \ar:cnt == 0 then it is the left border
- \Css{\#TBL-\TableNo-1{border-left: 1px solid black;}}%
+ \Css{\#TBL-\TableNo-1{border-left: 1px solid \VBorder:color;}}%
\fi%
}
{\Advance:\NewGroup by 1
@@ -29090,6 +29092,9 @@
% redefine default table configuration and put the color rule
\def\a:HBorder{<tr class="hline" style="border-top:1px solid \#\hline:color">}
+
+% use the hline color also for vertial lines
+\def\VBorder:color{\#\hline:color}
% don't display <hr> elements in colored \hline
\Css{tr.hline td hr{display:none}}
More information about the tex-live-commits
mailing list.