texlive[69445] Master/texmf-dist: load dvisvgm driver for pgf, tex4ht

commits+karl at tug.org commits+karl at tug.org
Mon Jan 15 23:01:19 CET 2024


Revision: 69445
          https://tug.org/svn/texlive?view=revision&revision=69445
Author:   karl
Date:     2024-01-15 23:01:19 +0100 (Mon, 15 Jan 2024)
Log Message:
-----------
load dvisvgm driver for pgf, tex4ht r1439; tcolorbox breakable boxes, tex4ht r1440; do not use tcolorbox \RecallEndP, tex4ht 1441

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1439
    https://tug.org/svn/texlive?view=revision&revision=1440

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/generic/tex4ht/pgf-hooks.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2024-01-15 21:42:06 UTC (rev 69444)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2024-01-15 22:01:19 UTC (rev 69445)
@@ -1,3 +1,16 @@
+2024-01-15  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (tcolorbox.4ht): don't use \RecallEndP in
+	tcolorbox, it can lead to spurious </p> tags.
+	https://github.com/michal-h21/make4ht/issues/142#issuecomment-1891507567
+
+	* tex4ht-4ht.tex (tcolorbox.4ht): fixed support for breakable boxes.
+	https://github.com/michal-h21/make4ht/issues/142
+
+	* 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/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2024-01-15 21:42:06 UTC (rev 69444)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2024-01-15 22:01:19 UTC (rev 69445)
@@ -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 @@
 
 \<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 @@
 \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,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}
 %%%%%%%%%%%%%%%%%%%%%%%%%
@@ -28595,7 +28615,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%
 \<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 @@
   \c:tcolorbox%
   \box\tcb at 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 at hasLower%
     \a:tcolorlowerbox%
@@ -28640,6 +28662,7 @@
 \HLet\tcb at drawcolorbox\:tempa
 % overwrite other versions of box drawing macros
 \HLet\tcb at drawcolorbox@standalone\:tempa
+\HLet\tcb at drawcolorbox@breakable\:tempa
 
 % save the state of paragraph before opening the content box
 \pend:def\tcb at set@@upper at and@lower{\SaveEndP}

Added: trunk/Master/texmf-dist/tex/generic/tex4ht/pgf-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/pgf-hooks.4ht	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/pgf-hooks.4ht	2024-01-15 22:01:19 UTC (rev 69445)
@@ -0,0 +1,27 @@
+% pgf-hooks.4ht (2024-01-15-14:00), generated from tex4ht-4ht.tex
+% Copyright 2024 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\immediate\write-1{version 2024-01-15-14:00}
+
+\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%
+


Property changes on: trunk/Master/texmf-dist/tex/generic/tex4ht/pgf-hooks.4ht
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht	2024-01-15 21:42:06 UTC (rev 69444)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht	2024-01-15 22:01:19 UTC (rev 69445)
@@ -1,5 +1,5 @@
-% tcolorbox.4ht (2023-10-20-09:23), generated from tex4ht-4ht.tex
-% Copyright 2020-2023 TeX Users Group
+% tcolorbox.4ht (2024-01-15-13:12), generated from tex4ht-4ht.tex
+% Copyright 2020-2024 TeX Users Group
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2023-10-20-09:23}
+\immediate\write-1{version 2024-01-15-13:12}
 
 
 % use custom counter that increments for every \tcolorbox
@@ -48,7 +48,9 @@
   \c:tcolorbox%
   \box\tcb at 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 at hasLower%
     \a:tcolorlowerbox%
@@ -61,6 +63,7 @@
 \HLet\tcb at drawcolorbox\:tempa
 % overwrite other versions of box drawing macros
 \HLet\tcb at drawcolorbox@standalone\:tempa
+\HLet\tcb at drawcolorbox@breakable\:tempa
 
 % save the state of paragraph before opening the content box
 \pend:def\tcb at set@@upper at and@lower{\SaveEndP}

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht	2024-01-15 21:42:06 UTC (rev 69444)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/tikz-hooks.4ht	2024-01-15 22:01:19 UTC (rev 69445)
@@ -1,5 +1,5 @@
-% tikz-hooks.4ht (2023-08-27-08:01), generated from tex4ht-4ht.tex
-% Copyright 2020-2023 TeX Users Group
+% tikz-hooks.4ht (2024-01-15-14:00), generated from tex4ht-4ht.tex
+% Copyright 2020-2024 TeX Users Group
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2023-08-27-08:01}
+\immediate\write-1{version 2024-01-15-14:00}
 
 \ifdefined\pgfsysdriver\else%
   \typeout{*****************************}

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht	2024-01-15 21:42:06 UTC (rev 69444)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht	2024-01-15 22:01:19 UTC (rev 69445)
@@ -1,4 +1,4 @@
-% usepackage.4ht (2024-01-05-14:29), generated from tex4ht-4ht.tex
+% usepackage.4ht (2024-01-15-14:00), generated from tex4ht-4ht.tex
 % Copyright 2003-2009 Eitan M. Gurari
 % Copyright 2009-2024 TeX Users Group
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2024-01-05-14:29}
+\immediate\write-1{version 2024-01-15-14:00}
 
    \def\:temp{tex4ht}\ifx \:temp\@currname
    \:warning{\string\usepackage{tex4ht} again?}
@@ -64,6 +64,7 @@
 \Configure{PackageHooks}{polyglossia.sty}{polyglossia-hooks.4ht}
 \Configure{PackageHooks}{fontspec.sty}{fontspec-hooks.4ht}
 \Configure{PackageHooks}{tikz.sty}{tikz-hooks.4ht}
+\Configure{PackageHooks}{pgf.sty}{pgf-hooks.4ht}
 \Configure{PackageHooks}{pdfbase.sty}{pdfbase-hooks.4ht}
 \Configure{PackageHooks}{pdfx.sty}{pdfx-hooks.4ht}
 \Configure{PackageHooks}{lua-widow-control.sty}{lua-widow-control-hooks.4ht}



More information about the tex-live-commits mailing list.