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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Dec 20 09:56:19 CET 2018


Author: michal_h21
Date: 2018-12-20 10:56:19 +0200 (Thu, 20 Dec 2018)
New Revision: 465

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
use dvips driver for xcolor and graphics with xelatex

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2018-12-19 22:40:19 UTC (rev 464)
+++ trunk/lit/ChangeLog	2018-12-20 08:56:19 UTC (rev 465)
@@ -1,3 +1,8 @@
+2018-12-20  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (usepackage.4ht): load dvips driver for graphicx and xcolor
+	packages with XeLaTeX. It fixes PDF support.
+
 2018-12-19  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-options.tex (tex4ht.4ht): added support for mathml option for

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2018-12-19 22:40:19 UTC (rev 464)
+++ trunk/lit/tex4ht-4ht.tex	2018-12-20 08:56:19 UTC (rev 465)
@@ -24806,6 +24806,20 @@
 
 \EndVerbatim
 
+Fix for XeTeX graphics - PDF inclusion doesn't work with default driver, 
+dvips needs to be used instead
+
+\<use package\><<<
+graphics,>>>
+
+\<add to usepackage\><<<
+\def\:temp{graphics}\ifx\@currname\:temp
+  \ifdefined\XeTeXversion
+    \PassOptionsToPackage{dvips}{graphics}
+  \fi
+\fi
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%
 \SubSection{graphicx}
 %%%%%%%%%%%%%%%%%%%%%%%
@@ -25324,6 +25338,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
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%
 \Section{framed}
 %%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list