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

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


Author: michal_h21
Date: 2020-10-17 12:20:03 +0300 (Sat, 17 Oct 2020)
New Revision: 818

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

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-10-17 09:14:22 UTC (rev 817)
+++ trunk/lit/ChangeLog	2020-10-17 09:20:03 UTC (rev 818)
@@ -8,6 +8,8 @@
 	the new package hook mechanism.
 	* tex4ht-4ht.tex (usepackage.4ht, pdfbase-hooks.4ht): adapted Pdfbase for
 	the new package hook mechanism.
+	* tex4ht-4ht.tex (usepackage.4ht, tikz-hooks.4ht): adapted Tikz 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 09:14:22 UTC (rev 817)
+++ trunk/lit/tex4ht-4ht.tex	2020-10-17 09:20:03 UTC (rev 818)
@@ -4135,8 +4135,6 @@
 \Section{TikZ}
 %%%%%%%%%%%%%%%%%
 
-\<use package\><<<
-tikz,>>>
 
 There is a support for TikZ externalization. TikZ has been instucted to don't
 externalize pictures when tex4ht is used. It is necessary to  create the PDF
@@ -4147,7 +4145,13 @@
 converted to SVG by default.
 
 \<add to usepackage\><<<
-\def\:temp{tikz}\ifx \@currname\:temp
+\Configure{PackageHooks}{tikz.sty}{tikz-hooks.4ht}
+>>>
+
+\<tikz-hooks.4ht\><<<
+% tikz-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
 \:AtEndOfPackage{%
 \let\use:tikzlibrary\usetikzlibrary
 \def\find:externalize#1external#2\@nil{%
@@ -4166,8 +4170,7 @@
 }
 \append:defI\use@@tikzlibrary{\find:externalize##1external\@nil}%
 }
-\fi
->>>
+>>> \AddFile{9}{tikz-hooks}
 
 %%%%%%%%%%%%%%%%%%
 \Section{pdfbase.sty}
@@ -4180,6 +4183,9 @@
 >>>
 
 \<pdfbase-hooks.4ht\><<<
+% pdfbase-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
 \:AtEndOfPackage{%
   \let\old:outputpage\@outputpage
   \def\@outputpage{\old:outputpage{}}



More information about the tex4ht-commits mailing list.