From 4fd81a66c82a2ba8787c6ca78bfcc14820e4017c Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Wed, 17 Jan 2024 03:01:02 +0000
Subject: CTAN sync 202401170301

---
 support/TeX4ht/source/tex4ht-4ht.tex | 55 +++++++++++++++++++++++++-----------
 1 file changed, 39 insertions(+), 16 deletions(-)

(limited to 'support/TeX4ht/source/tex4ht-4ht.tex')

diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 12ae8e003e..9372b02b23 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1438 2024-01-13 16:45:49Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1442 2024-01-15 22:00:31Z karl $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2024 TeX Users Group    
@@ -4891,7 +4891,7 @@ converted to SVG by default.
 
 \<tikz-hooks.4ht\><<<
 % tikz-hooks.4ht (|version), generated from |jobname.tex
-% Copyright 2020-2023 TeX Users Group
+% Copyright 2020-2024 TeX Users Group
 |<TeX4ht license text|>
 \ifdefined\pgfsysdriver\else%
   \typeout{*****************************}
@@ -4921,6 +4921,38 @@ converted to SVG by default.
 \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
+TeX4ht 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,18 +28212,6 @@ be wrapped around \''\mfpic ...  \endmfpic',
 \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}
@@ -28595,7 +28615,7 @@ We need to use dvips driver with XeLaTeX
 %%%%%%%%%%%%%%%%%%%%%%%
 \<tcolorbox.4ht\><<<
 % tcolorbox.4ht (|version), generated from |jobname.tex
-% Copyright 2020-2023 TeX Users Group
+% Copyright 2020-2024 TeX Users Group
 |<TeX4ht license text|>
 
 % use custom counter that increments for every \tcolorbox
@@ -28627,7 +28647,9 @@ We need to use dvips driver with XeLaTeX
   \c:tcolorbox%
   \box\tcb@upperbox%
   % the paragraph opened in the upper box can be unclosed
-  \RecallEndP
+  % but I cannot find an example where it matters. \RecallEndP caused issues in the following sample:
+  % https://github.com/michal-h21/make4ht/issues/142#issuecomment-1891507567
+  % \RecallEndP
   % deal with lower box, if it is set
   \iftcb@hasLower%
     \a:tcolorlowerbox%
@@ -28640,6 +28662,7 @@ We need to use dvips driver with XeLaTeX
 \HLet\tcb@drawcolorbox\:tempa
 % overwrite other versions of box drawing macros
 \HLet\tcb@drawcolorbox@standalone\:tempa
+\HLet\tcb@drawcolorbox@breakable\:tempa
 
 % save the state of paragraph before opening the content box
 \pend:def\tcb@set@@upper@and@lower{\SaveEndP}
-- 
cgit v1.2.3

