[tex4ht-commits] [SCM] tex4ht updated: r295 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Thu Apr 27 17:25:04 CEST 2017
Author: michal_h21
Date: 2017-04-27 18:25:04 +0300 (Thu, 27 Apr 2017)
New Revision: 295
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
New command for xcolor package, \get:xcolorcss
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2017-04-27 12:53:21 UTC (rev 294)
+++ trunk/lit/ChangeLog 2017-04-27 15:25:04 UTC (rev 295)
@@ -2,6 +2,8 @@
* tex4ht-html4.tex (html4.4ht): use CSS instead of rules="groups"
attribute for vertical lines in tables
+ * tex4ht-4ht.tex (xcolor.4ht): new command \get:xcolorcss, for
+ conversion from xcolor color spec to CSS colors.
2017-04-22 Karl Berry <karl at freefriends.org>
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2017-04-27 12:53:21 UTC (rev 294)
+++ trunk/lit/tex4ht-4ht.tex 2017-04-27 15:25:04 UTC (rev 295)
@@ -24977,6 +24977,19 @@
\fi \fi
>>>
+The following command can convert xcolor color specification to formusable
+in CSS. The color is extracted to command which needs to b passed as a
+second parameter.
+
+\<config xcolor\><<<
+\def\get:xcolorcss#1#2{%
+ \expandafter\extractcolorspec\expandafter{#1}{\tsf:color}%
+ \expandafter\convertcolorspec\tsf:color{HTML}\tsf:color%
+ \edef#2{\#\tsf:color}%
+}
+
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%
\Section{framed}
%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list