[tex4ht-commits] [SCM] tex4ht updated: r1575 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Sun Oct 6 18:44:23 CEST 2024


Author: michal_h21
Date: 2024-10-06 16:44:23 +0000 (Sun, 06 Oct 2024)
New Revision: 1575

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Added support for colored vertical lines in tables

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-10-04 12:22:30 UTC (rev 1574)
+++ trunk/lit/ChangeLog	2024-10-06 16:44:23 UTC (rev 1575)
@@ -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/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2024-10-04 12:22:30 UTC (rev 1574)
+++ trunk/lit/tex4ht-html4.tex	2024-10-06 16:44:23 UTC (rev 1575)
@@ -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}}
 >>>



More information about the tex4ht-commits mailing list.