texlive[69028] Master/texmf-dist: color option in xcolor, tex4ht

commits+karl at tug.org commits+karl at tug.org
Sun Dec 3 22:25:25 CET 2023


Revision: 69028
          https://tug.org/svn/texlive?view=revision&revision=69028
Author:   karl
Date:     2023-12-03 22:25:25 +0100 (Sun, 03 Dec 2023)
Log Message:
-----------
color option in xcolor, tex4ht r1414

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1414

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/xcolor.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-12-03 21:09:44 UTC (rev 69027)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-12-03 21:25:25 UTC (rev 69028)
@@ -1,3 +1,8 @@
+2023-12-03  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (xcolor.4ht): added the "color" option.
+	https://tex.stackexchange.com/a/470290/2891
+
 2023-11-21  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht): use <mtext> instead of <mrow> in

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2023-12-03 21:09:44 UTC (rev 69027)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2023-12-03 21:25:25 UTC (rev 69028)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1412 2023-11-20 10:08:03Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1414 2023-12-03 21:09:44Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2023 TeX Users Group    
@@ -28514,6 +28514,19 @@
 
 >>>
 
+This code comes from this \Link[https://tex.stackexchange.com/a/470290/2891]{}{}answer\EndLink.
+See the comments for possible shortcommings.
+
+\<config xcolor\><<<
+\:CheckOption{color}\if:Option
+\pend:defI\@declaredcolor{%
+  \ifdefined\end:def:color\end:def:color\else\aftergroup\b:textcolor\fi
+  \a:textcolor\def\end:def:color{\b:textcolor}%
+}
+\fi
+>>>
+
+
 We need to use dvips driver with XeLaTeX
 
 \<add to usepackage\><<<
@@ -29774,7 +29787,7 @@
 This code postpones execution of code from the "after" key after
 closing of the Enumitem environment, so it can be correctly closed.
 
-See \Link[https://tex.stackexchange.com/q/642439/2891] this example
+See \Link[https://tex.stackexchange.com/q/642439/2891]{}{} this example
 what can go wrong\EndLink.
 
 \<enumitem config\><<<

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/xcolor.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/xcolor.4ht	2023-12-03 21:09:44 UTC (rev 69027)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/xcolor.4ht	2023-12-03 21:25:25 UTC (rev 69028)
@@ -1,6 +1,6 @@
-% xcolor.4ht (2022-04-17-09:34), generated from tex4ht-4ht.tex
+% xcolor.4ht (2023-12-03-13:24), generated from tex4ht-4ht.tex
 % Copyright 2007-2009 Eitan M. Gurari
-% Copyright 2009-2022 TeX Users Group
+% Copyright 2009-2023 TeX Users Group
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2022-04-17-09:34}
+\immediate\write-1{version 2023-12-03-13:24}
 
 \input color.4ht
 \def\rowc at l@rs[#1]#2#3#4%
@@ -92,6 +92,12 @@
    \edef#2{\#\tsf:color}%
 }
 
+\:CheckOption{color}\if:Option
+\pend:defI\@declaredcolor{%
+  \ifdefined\end:def:color\end:def:color\else\aftergroup\b:textcolor\fi
+  \a:textcolor\def\end:def:color{\b:textcolor}%
+}
+\fi
 
 \Hinput{xcolor}
 \endinput



More information about the tex-live-commits mailing list.