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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Sep 16 15:21:14 CEST 2022


Author: michal_h21
Date: 2022-09-16 13:21:14 +0000 (Fri, 16 Sep 2022)
New Revision: 1194

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-sty.tex
Log:
fix compilation errors due to catcode changes of the ^ character in the doc and hypdoc packages

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-09-14 14:21:16 UTC (rev 1193)
+++ trunk/lit/ChangeLog	2022-09-16 13:21:14 UTC (rev 1194)
@@ -1,3 +1,11 @@
+2022-09-16  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-sty.tex (tex4ht.sty): initialize the \SUPOn and \SUBOn
+	macros.
+
+	* tex4ht-4ht (usepackage.4ht): disable TeX4ht redefinitions of the ^
+	character at the loading of the doc and hypdoc packages.
+
 2022-09-14  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (usepackage.4ht, luatexja-hooks.4ht): prevent

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-09-14 14:21:16 UTC (rev 1193)
+++ trunk/lit/tex4ht-4ht.tex	2022-09-16 13:21:14 UTC (rev 1194)
@@ -17552,11 +17552,21 @@
 % Copyright (C) |CopyYear.1997.       Eitan M. Gurari         %
 |<TeX4ht copyright|>
 
+
+
 |<doc.sty|>
 \Hinput{doc}
 \endinput
 >>>        \AddFile{9}{doc}
 
+We have issue with catcode of the hat character, so we need to turn off
+TeX4ht code for this character when the package is processed.
+
+\<add to usepackage\><<<
+\AddToHook{package/doc/before}{\SUPOff}
+\AddToHook{package/doc/after}{\SUPOn}
+>>>
+
 \<doc.sty\><<<
 \:CheckOption{no^} \if:Option \else
    \catcode`\^^M|=13    \def\hat:A#1^^M{\egroup}    \catcode`\^^M|=5  %
@@ -17628,6 +17638,20 @@
 >>>
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{hypdoc.sty}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+We don't need configuration file for the hypdoc package, but we need
+to fix catcode issues with the hat character.
+
+
+\<add to usepackage\><<<
+\AddToHook{package/hypdoc/before}{\SUPOff}
+\AddToHook{package/hypdoc/after}{\SUPOn}
+>>>
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \Section{holtxdoc.sty}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex	2022-09-14 14:21:16 UTC (rev 1193)
+++ trunk/lit/tex4ht-sty.tex	2022-09-16 13:21:14 UTC (rev 1194)
@@ -8761,6 +8761,10 @@
 
 
 
+\<record external sub-sup\><<<
+\def\SUPOn{}
+\def\SUBOn{}
+>>>
 
 \<record external sub-sup\><<<
 \edef\SUPOff{%



More information about the tex4ht-commits mailing list.