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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Nov 21 17:36:29 CET 2019


Author: michal_h21
Date: 2019-11-21 18:36:28 +0200 (Thu, 21 Nov 2019)
New Revision: 625

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

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-11-21 15:37:27 UTC (rev 624)
+++ trunk/lit/ChangeLog	2019-11-21 16:36:28 UTC (rev 625)
@@ -2,6 +2,8 @@
 
 	* tex4ht-html5.tex (html5.4ht): fixed language detection when no main
 	language is specified.
+	* tex4ht-4ht.tex (colortbl.4ht): added support for the \cellcolor command.
+	https://tex.stackexchange.com/a/517434/2891
 
 2019-11-13 Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-11-21 15:37:27 UTC (rev 624)
+++ trunk/lit/tex4ht-4ht.tex	2019-11-21 16:36:28 UTC (rev 625)
@@ -25998,6 +25998,21 @@
 \HAssign\tblcol:N = 0
 >>>
 
+We can reuse the code used in \`|\columncolor| to support also the 
+\`|\cellcolor| command.
+
+\<fix colortbl\><<<
+\def\CT at cellc#1[#2]#3{{\if :#2:\def\current at color{#3}%
+                         \else 
+                           \gHAdvance\tblcol:N by 1
+                           \convertcolorspec{#2}{#3}{HTML}\tmp:tblcolor
+                           \Configure{HColor}{tblcol-\tblcol:N}{\#\tmp:tblcolor}%
+                           \def\current at color{tblcol-\tblcol:N}%
+                         \fi
+                    \csname a:cell-colortbl\endcsname}%
+   \futurelet\:temp\left:colcol}
+>>>
+
 The followning is a redefinition of a macro from array.sty
 
 \<fix colortbl\><<<



More information about the tex4ht-commits mailing list