[tex4ht-commits] [SCM] tex4ht updated: r1502 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Apr 18 14:55:56 CEST 2024


Author: michal_h21
Date: 2024-04-18 12:55:56 +0000 (Thu, 18 Apr 2024)
New Revision: 1502

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
Log:
Added support for the xyling package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-04-18 12:13:27 UTC (rev 1501)
+++ trunk/lit/ChangeLog	2024-04-18 12:55:56 UTC (rev 1502)
@@ -1,5 +1,9 @@
 2024-04-18  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (usepackage.4ht, xyling-hooks.4ht, xyling.4ht):
+	added support for the Xyling package.
+	https://www.umsu.de/blog/2024/801#c2398
+
 	* tex4ht-fonts-noncjk.tex (
 	tex4ht.dir/texmf/tex4ht/ht-fonts/iso8859/1/xypic/xycirc.htf
 	): added support for the xycirc font.

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2024-04-18 12:13:27 UTC (rev 1501)
+++ trunk/lit/mktex4ht-cnf.tex	2024-04-18 12:55:56 UTC (rev 1502)
@@ -200,6 +200,8 @@
 \AddFile{9}{slidesec}
 \AddFile{9}{texpower}
 \AddFile{9}{xy}
+\AddFile{9}{xyling}
+\AddFile{9}{xyling-hooks}
 \AddFile{9}{pictex}
 \AddFile{9}{diagrams}
 \AddFile{9}{pstricks}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-04-18 12:13:27 UTC (rev 1501)
+++ trunk/lit/tex4ht-4ht.tex	2024-04-18 12:55:56 UTC (rev 1502)
@@ -27548,6 +27548,59 @@
 >>>
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\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}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list.