From 059925fc0cab13a83a74089aeee51f4b09bbd914 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 19 Apr 2024 03:00:56 +0000
Subject: CTAN sync 202404190300

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

(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 1de9704646..e615b9603e 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1499 2024-04-07 14:55:22Z karl $
+% $Id: tex4ht-4ht.tex 1502 2024-04-18 12:55:56Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2024 TeX Users Group    
@@ -27547,6 +27547,59 @@ xypic assum catcodes of 7 and 8 for sup and sub.
 \NewConfigure{diagram}{2}
 >>>
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{xyling.sty}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+\<add to usepackage\><<<
+\Configure{PackageHooks}{xyling.sty}{xyling-hooks.4ht}
+>>>
+
+
+\<xyling-hooks.4ht\><<<
+% xyling-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2024 TeX Users Group
+|<TeX4ht license text|>
+|<Xyling save Link|>
+\:AtEndOfPackage{%
+|<Xyling restore Link|>
+}
+\endinput
+>>> \AddFile{9}{xyling-hooks}
+
+Xyling defines its own version of the \Verb+\Link+ command,
+which breaks lot of things in TeX4ht. We must suppress this
+version and use it only inside Xyling diagrams.
+
+\<Xyling save Link\><<<
+\let\orix:xylingLink\Link
+\let\Link\relax
+>>>
+
+\<Xyling restore Link\><<<
+  \let\xyling:Link\Link
+  \let\Link\orig:xylingLink
+>>>
+
+\<xyling.4ht\><<<
+% xyling.4ht (|version), generated from |jobname.tex
+% Copyright 2024 TeX Users Group
+|<TeX4ht license text|>
+|<patch Xyling Tree|>
+\Hinput{xyling}
+\endinput
+>>> \AddFile{9}{xyling}
+
+Restore the Link command inside Xyling graph drawing commands
+
+\<patch Xyling Tree\><<<
+\newcommand\xyling:Tree[2][0]{\bgroup\let\Link\xyling:Link\o:Tree:[#1]{#2}\egroup}
+\newcommand\xyling:Treek[3][0]{\bgroup\let\Link\xyling:Link\o:Treek:[#1]{#2}{#3}\egroup}
+\HLet\Tree\xyling:Tree
+\HLet\Treek\xyling:Treek
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \Section{PicTeX}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
-- 
cgit v1.2.3

