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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Tue May 4 00:53:04 CEST 2021


Author: michal_h21
Date: 2021-05-03 22:53:04 +0000 (Mon, 03 May 2021)
New Revision: 925

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added support for \arrayrulecolor command

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-05-02 22:55:22 UTC (rev 924)
+++ trunk/lit/ChangeLog	2021-05-03 22:53:04 UTC (rev 925)
@@ -1,3 +1,10 @@
+2021-05-04  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (colortbl.4ht),
+	tex4ht-html4.tex (html4.4ht): added support for \arrayrulecolor 
+	command.
+	https://tex.stackexchange.com/a/595571/2891
+
 2021-05-02  Karl Berry  <karl at freefriends.org>
 
 	* Makefile (diff-src, install-src, list-src): new targets
@@ -4213,4 +4220,4 @@
 
 This file is public domain.  Started 2010, Karl Berry.
 
-# vim: textwidth=78
+# vim: textwidth=78 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-05-02 22:55:22 UTC (rev 924)
+++ trunk/lit/tex4ht-4ht.tex	2021-05-03 22:53:04 UTC (rev 925)
@@ -26808,6 +26808,17 @@
 \NewConfigure{rowcolor}{1}
 >>>
 
+Fixes for colored hlines
+
+\<fix colortbl\><<<
+% default hline color is black
+\def\hline:color{000}
+% save rule color in format usable in CSS
+\renewcommand\arrayrulecolor[2][named]{%
+\noalign{\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp}%
+}
+>>>
+
 \SubSection{Utilities}
 
 This should enable use of \`|\color| command in array declaration

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2021-05-02 22:55:22 UTC (rev 924)
+++ trunk/lit/tex4ht-html4.tex	2021-05-03 22:53:04 UTC (rev 925)
@@ -16063,6 +16063,11 @@
    {\add:color{background-color}{\current at color}{\HRow-\HCol}}
 \def\add:color#1#2#3{%
   \Configure{SetHColor}{\Css{ \#TBL-\TableNo-#3{ #1:\HColor }}}{#2}}
+
+% redefine default table configuration and put the color rule
+\def\a:HBorder{<tr class="hline" style="border-top:1px solid \#\hline:color">}
+% don't display <hr> elements in colored \hline
+\Css{tr.hline td hr{display:none}}
 >>>
 
 [\HPage{test file}



More information about the tex4ht-commits mailing list.