[tex4ht-commits] [SCM] tex4ht updated: r1003 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Thu Oct 21 15:01:35 CEST 2021
Author: michal_h21
Date: 2021-10-21 13:01:34 +0000 (Thu, 21 Oct 2021)
New Revision: 1003
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
fixed the externalization support
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-10-20 14:58:37 UTC (rev 1002)
+++ trunk/lit/ChangeLog 2021-10-21 13:01:34 UTC (rev 1003)
@@ -1,3 +1,8 @@
+2021-10-21 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (tikz-hooks.4ht): fixed the externalization support.
+ https://tex.stackexchange.com/a/619748/2891
+
2021-10-20 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-fonts-kpfonts.tex: added support for Kpfonts.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2021-10-20 14:58:37 UTC (rev 1002)
+++ trunk/lit/tex4ht-4ht.tex 2021-10-21 13:01:34 UTC (rev 1003)
@@ -4447,26 +4447,26 @@
% Copyright 2021 TeX Users Group
|<TeX4ht license text|>
\ifdefined\pgfsysdriver\else%
- {\typeout{*****************************}
+ \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}%
+ \def\pgfsysdriver{pgfsys-dvisvgm4ht.def}%
\fi%
\:AtEndOfPackage{%
\let\use:tikzlibrary\usetikzlibrary
\def\find:externalize#1external#2\@nil{%
-\if\relax#2\relax\else
- \let\tikz:externalize\tikzexternalize
- \renewcommand\tikzexternalize[1][]{\tikz:externalize[##1,mode=only graphics]}
+ \ifdefined\tikzexternalize
+ \let\tikz:externalize\tikzexternalize
+ \renewcommand\tikzexternalize[1][]{\tikz:externalize[##1,mode=only graphics]}
\tikzset{%
tex4ht inc/.style={%
/pgf/images/include external/.code={%
\includegraphics[]{####1.pdf}%
}%
- }
- }
- \tikzset{tex4ht inc}
- \fi
+ }%
+ }%
+ \tikzset{tex4ht inc}%
+ \fi%
}
\append:defI\use@@tikzlibrary{\find:externalize##1external\@nil}%
}
More information about the tex4ht-commits
mailing list.