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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu May 9 15:28:51 CEST 2024


Author: michal_h21
Date: 2024-05-09 13:28:51 +0000 (Thu, 09 May 2024)
New Revision: 1516

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
added support for more colors

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-05-07 15:21:27 UTC (rev 1515)
+++ trunk/lit/ChangeLog	2024-05-09 13:28:51 UTC (rev 1516)
@@ -1,3 +1,9 @@
+2024-05-09  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (xcolor.4ht),
+	* tex4ht-html4.tex (html4.4ht): added support for more colors.
+	https://tex.stackexchange.com/q/716339/2891
+
 2024-05-07  Linas Stonys  <lstonys at vtex.lt>
 
 	* tex4ht-4ht.tex (latex.4ht, amsmath.4ht): fixed restoring of \begin

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-05-07 15:21:27 UTC (rev 1515)
+++ trunk/lit/tex4ht-4ht.tex	2024-05-09 13:28:51 UTC (rev 1516)
@@ -28716,6 +28716,9 @@
   \else%
      \ifcsname HColor!#1\endcsname%
        \csname HColor!#1\endcsname #2//%
+     \else
+       \get:xcolorcss{#1!#2}{\HColor}%
+       \Configure{HColor}{\current:color:name}{\HColor}%
      \fi%
   \fi
 }

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2024-05-07 15:21:27 UTC (rev 1515)
+++ trunk/lit/tex4ht-html4.tex	2024-05-09 13:28:51 UTC (rev 1516)
@@ -16313,9 +16313,7 @@
 
 \<configure html4 xcolor\><<<
 \Configure{HColor!gray}{%
-   \XC at c@lcD\rangeGray{}{#1}\@@tmp
-   \int:of\:tempa{255}{\@@tmp}%
-   \Configure{HColor}{}{rgb(\:tempa,\:tempa,\:tempa)}%
+  \get:xcolorcss{gray!#1}{\HColor}
 }
 >>>
 



More information about the tex4ht-commits mailing list.