[tex4ht-commits] [SCM] tex4ht updated: r1067 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Tue Feb 1 17:25:25 CET 2022
Author: michal_h21
Date: 2022-02-01 16:25:25 +0000 (Tue, 01 Feb 2022)
New Revision: 1067
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
Preserve current color
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-02-01 11:32:39 UTC (rev 1066)
+++ trunk/lit/ChangeLog 2022-02-01 16:25:25 UTC (rev 1067)
@@ -1,3 +1,9 @@
+2022-02-01 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (color.4ht): don't redefine \@undeclaredcolor, in
+ order to preserve setting of the current color by the Color package.
+ https://tex.stackexchange.com/q/631906/2891
+
2022-01-30 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-fonts-noncjk.tex (
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2022-02-01 11:32:39 UTC (rev 1066)
+++ trunk/lit/tex4ht-4ht.tex 2022-02-01 16:25:25 UTC (rev 1067)
@@ -26661,12 +26661,8 @@
>>>
\<fix color\><<<
-\def\@undeclaredcolor[#1]#2{\a:color{#1 #2}%
- \@ifundefined{color@#1}%
- {\@latex at error{Undefined color model `#1'}\@ehd}%
- {\csname color@#1\endcsname\current at color{#2}%
- \set at color}%
- \ignorespaces}
+\def\:tempa[#1]#2{\a:color{#1 #2}\o:@undeclaredcolor:[#1]{#2}}
+\HLet\@undeclaredcolor\:tempa
\pend:defI\@declaredcolor{\a:color{##1}}
>>>
More information about the tex4ht-commits
mailing list.