summaryrefslogtreecommitdiff
path: root/support/TeX4ht
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht')
-rw-r--r--support/TeX4ht/source/ChangeLog11
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex27
-rw-r--r--support/TeX4ht/source/tex4ht-sty.tex6
3 files changed, 42 insertions, 2 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 940b038095..b016187e21 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,14 @@
+2022-09-16 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (unicode-math-hooks.4ht): declare the \unimathsetup
+ command.
+
+ * 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@gmail.com>
* tex4ht-4ht.tex (usepackage.4ht, luatexja-hooks.4ht): prevent
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 4f4a5c6ba5..c975e6e7c3 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1193 2022-09-14 14:21:16Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1195 2022-09-16 20:06:02Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -4301,6 +4301,7 @@ document.
\@ifpackageloaded{fontspec}{}
{\RequirePackage{fontspec}} % it is loaded by unicode-math
\NewDocumentCommand \setmathfont { O{} m O{} }{}
+\NewDocumentCommand \unimathsetup {m} {}
\catcode`\:=11\makeatletter
\endinput
>>> \AddFile{9}{unicode-math-hooks}
@@ -17552,11 +17553,21 @@ unnumberedsubsubsec%
% 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 +17639,20 @@ unnumberedsubsubsec%
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/support/TeX4ht/source/tex4ht-sty.tex b/support/TeX4ht/source/tex4ht-sty.tex
index 4e64265ba4..c9193ba940 100644
--- a/support/TeX4ht/source/tex4ht-sty.tex
+++ b/support/TeX4ht/source/tex4ht-sty.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-sty.tex 1181 2022-08-04 17:27:58Z michal_h21 $
+% $Id: tex4ht-sty.tex 1194 2022-09-16 13:21:14Z michal_h21 $
% tex tex4ht-sty or ht tex tex4ht-sty
%
% Copyright 2009-2022 TeX Users Group
@@ -8761,6 +8761,10 @@ TRY: Replace SUBOn with HSUBOn, SUBOff with HSUBOff, Ditto for SUP
+\<record external sub-sup\><<<
+\def\SUPOn{}
+\def\SUBOn{}
+>>>
\<record external sub-sup\><<<
\edef\SUPOff{%