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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Jan 15 10:34:15 CET 2024


Author: michal_h21
Date: 2024-01-15 09:34:14 +0000 (Mon, 15 Jan 2024)
New Revision: 1439

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
load the dvisvgm driver with PGF

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-01-13 16:45:49 UTC (rev 1438)
+++ trunk/lit/ChangeLog	2024-01-15 09:34:14 UTC (rev 1439)
@@ -1,3 +1,9 @@
+2024-01-15  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (usepackage.4ht, tikz-hooks.4ht, pgf-hooks.4ht):
+	load the Dvisvgm driver for PGF when the PFG package is used.
+	https://github.com/michal-h21/make4ht/issues/142
+
 2024-01-13  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (memoir.4ht): don't load booktabs.4ht from

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-01-13 16:45:49 UTC (rev 1438)
+++ trunk/lit/tex4ht-4ht.tex	2024-01-15 09:34:14 UTC (rev 1439)
@@ -4921,6 +4921,38 @@
 \fi
 >>> \AddFile{9}{tikz-hooks}
 
+%%%%%%%%%%%%%%%%%%%
+\Section{pgf.sty}
+%%%%%%%%%%%%%%%%%%%
+
+\<pgf.4ht\><<<
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
+% pgf.4ht                                |version %
+% Copyright (C) |CopyYear.2003.       Eitan M. Gurari         %
+|<TeX4ht copyright|>
+\Hinput{pgf}
+\endinput
+>>>        \AddFile{9}{pgf}
+
+\<add to usepackage\><<<
+\Configure{PackageHooks}{pgf.sty}{pgf-hooks.4ht}
+>>>
+
+The following code loads the dvisvgm driver for TeX4ht. The default TeX4th driver
+provided by TikZ doesn't work well. 
+
+\<pgf-hooks.4ht\><<<
+% pgf-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2024 TeX Users Group
+|<TeX4ht license text|>
+\ifdefined\pgfsysdriver\else%
+  \typeout{*****************************}
+  \typeout{TeX4ht info: Using dvisvgm4ht TikZ driver. Put \detokenize{\def\pgfsysdriver{driver-name}} to your 
+  document before use of TikZ if you want to another driver. Use tikz+ option if your TikZ pictures use patterns.}%
+  \def\pgfsysdriver{pgfsys-dvisvgm4ht.def}%
+\fi%
+>>>        \AddFile{9}{pgf-hooks}
+
 %%%%%%%%%%%%%%%%%%
 \Section{pdfbase.sty}
 %%%%%%%%%%%%%%%%%%
@@ -28180,19 +28212,7 @@
 \Configure{ @V}{}{}
 >>>
 
-%%%%%%%%%%%%%%%%%%%
-\Section{pgf.sty}
-%%%%%%%%%%%%%%%%%%%
 
-\<pgf.4ht\><<<
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
-% pgf.4ht                                |version %
-% Copyright (C) |CopyYear.2003.       Eitan M. Gurari         %
-|<TeX4ht copyright|>
-\Hinput{pgf}
-\endinput
->>>        \AddFile{9}{pgf}
-
 %%%%%%%%%%%%%%%%%%%%%%%
 \Section{color.sty}
 %%%%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.