| 1 |
% tikz-hooks.4ht (2025-11-20-13:54), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 2020-2025 TeX Users Group |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either |
| 6 |
% version 1.3c of this license or (at your option) any |
| 7 |
% later version. The latest version of this license is in |
| 8 |
% http://www.latex-project.org/lppl.txt |
| 9 |
% and version 1.3c or later is part of all distributions |
| 10 |
% of LaTeX version 2005/12/01 or later. |
| 11 |
% |
| 12 |
% This work has the LPPL maintenance status "maintained". |
| 13 |
% |
| 14 |
% The Current Maintainer of this work |
| 15 |
% is the TeX4ht Project <http://tug.org/tex4ht>. |
| 16 |
% |
| 17 |
% If you modify this program, changing the |
| 18 |
% version identification would be appreciated. |
| 19 |
\immediate\write-1{version 2025-11-20-13:54} |
| 20 |
|
| 21 |
\ifdefined\pgfsysdriver\else% |
| 22 |
\typeout{*****************************} |
| 23 |
\typeout{TeX4ht info: Using dvisvgm4ht TikZ driver. Put \detokenize{\def\pgfsysdriver{driver-name}} to your |
| 24 |
document before use of TikZ if you want to another driver. Use tikz+ option if your TikZ pictures use patterns.}% |
| 25 |
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}% |
| 26 |
\fi% |
| 27 |
\ifdefined\find:externalize\else |
| 28 |
\:AtEndOfPackage{% |
| 29 |
\let\use:tikzlibrary\usetikzlibrary |
| 30 |
\def\find:externalize#1external#2\@nil{% |
| 31 |
\ifdefined\tikzexternalize |
| 32 |
\let\tikz:externalize\tikzexternalize |
| 33 |
\renewcommand\tikzexternalize[1][]{\begingroup\let\orig:includegraphics\includegraphics\tikz:externalize[##1,mode=only graphics]\endgroup} |
| 34 |
\tikzset{% |
| 35 |
tex4ht inc/.style={% |
| 36 |
/pgf/images/include external/.code={% |
| 37 |
% it seems that \includegraphics is redefined inside \tikzeexternalize, |
| 38 |
% so we need to use saved version to prevent errors |
| 39 |
\orig:includegraphics[]{####1.pdf}% |
| 40 |
}% |
| 41 |
}% |
| 42 |
}% |
| 43 |
\tikzset{tex4ht inc}% |
| 44 |
\fi% |
| 45 |
} |
| 46 |
\append:defI\use@@tikzlibrary{\find:externalize##1external\@nil}% |
| 47 |
} |
| 48 |
\fi |
| 49 |
|