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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Sun Jul 3 20:18:19 CEST 2022


Author: michal_h21
Date: 2022-07-03 18:18:19 +0000 (Sun, 03 Jul 2022)
New Revision: 1165

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed \arrayrulecolor issue when used outside of tabular

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-07-01 14:16:09 UTC (rev 1164)
+++ trunk/lit/ChangeLog	2022-07-03 18:18:19 UTC (rev 1165)
@@ -1,3 +1,9 @@
+2022-07-03  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (colortbl.4ht): fixed error when \arrayrulecolor is
+	used outside of Tabular.
+	https://tex.stackexchange.com/a/649734/2891
+
 2022-07-01  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (hyperref.4ht): fixed handling of undefined

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-07-01 14:16:09 UTC (rev 1164)
+++ trunk/lit/tex4ht-4ht.tex	2022-07-03 18:18:19 UTC (rev 1165)
@@ -27773,7 +27773,7 @@
 \NewConfigure{rowcolor}{1}
 >>>
 
-Fixes for colored hlines
+Fixes for colored hlines. The \`|\hline:color| can be used in CSS, for instance.
 
 \<fix colortbl\><<<
 % default hline color is black
@@ -27780,7 +27780,11 @@
 \def\hline:color{000}
 % save rule color in format usable in CSS
 \newcommand\tmp:arrayrulecolor[2][named]{%
-\noalign{\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp}%
+\ifvoid\@arstrutbox% test if we are inside a tabular environment
+\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp% we are not
+\else%
+\noalign{\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp}% we are
+\fi
 }
 \HLet\arrayrulecolor\tmp:arrayrulecolor
 >>>



More information about the tex4ht-commits mailing list.