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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sat Oct 17 11:06:17 CEST 2020


Author: michal_h21
Date: 2020-10-17 12:06:17 +0300 (Sat, 17 Oct 2020)
New Revision: 815

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Adapted Xcolor for the new package hook mechanism

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-10-17 08:59:05 UTC (rev 814)
+++ trunk/lit/ChangeLog	2020-10-17 09:06:17 UTC (rev 815)
@@ -2,6 +2,8 @@
 
 	* tex4ht-4ht.tex (usepackage.4ht, graphics-hooks.4ht): adapted Graphics for
 	the new package hook mechanism.
+	* tex4ht-4ht.tex (usepackage.4ht, xcolor-hooks.4ht): adapted Xcolor for
+	the new package hook mechanism.
 
 2020-10-16  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-10-17 08:59:05 UTC (rev 814)
+++ trunk/lit/tex4ht-4ht.tex	2020-10-17 09:06:17 UTC (rev 815)
@@ -25503,9 +25503,6 @@
 Fix for XeTeX graphics - PDF inclusion doesn't work with the default driver, 
 dvips needs to be used instead
 
-\<use package\><<<
-graphics,>>>
-
 \<add to usepackage\><<<
 \Configure{PackageHooks}{graphics.sty}{graphics-hooks.4ht}
 >>>
@@ -26064,17 +26061,19 @@
 
 We need to use dvips driver with XeLaTeX
 
-\<use package\><<<
-xcolor,>>>
-
 \<add to usepackage\><<<
-\def\:temp{xcolor}\ifx\@currname\:temp
-  \ifdefined\XeTeXversion
-    \PassOptionsToPackage{dvips}{xcolor}
-  \fi
-\fi
+\Configure{PackageHooks}{xcolor.sty}{xcolor-hooks.4ht}
 >>>
 
+\<xcolor-hooks.4ht\><<<
+% xcolor-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
+\ifdefined\XeTeXversion
+  \PassOptionsToPackage{dvips}{xcolor}
+\fi
+>>> \AddFile{9}{xcolor-hooks}
+
 %%%%%%%%%%%%%%%%%%%%%%%
 \Section{framed}
 %%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.