summaryrefslogtreecommitdiff
path: root/support/TeX4ht
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-26 03:00:50 +0000
committerNorbert Preining <norbert@preining.info>2023-07-26 03:00:50 +0000
commitcd61ef4a2d1994eb5729fcec4bfcf1fb1682f21d (patch)
tree9398dfb1919cec07283c0a559edf17de12e61924 /support/TeX4ht
parentbe53973de38a7aa9a3a0a8c70fd92bdf893c1a35 (diff)
CTAN sync 202307260300
Diffstat (limited to 'support/TeX4ht')
-rw-r--r--support/TeX4ht/source/ChangeLog9
-rw-r--r--support/TeX4ht/source/mktex4ht-cnf.tex3
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex46
3 files changed, 55 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 4dcd714589..10b01a415d 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,12 @@
+2023-07-25 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (usepackage.4ht, mathtools-hooks.4ht): fixed
+ commands declared by \DeclarePairedDelimiter with MathML.
+ https://github.com/michal-h21/make4ht/issues/126
+
+ * tex4ht-4ht.tex (listings.4ht): fixed captions in inputed listings.
+ https://tex.stackexchange.com/a/691965/2891
+
2023-07-11 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-mathml.tex (mathml.4ht): fixed \tilde accent in MathML.
diff --git a/support/TeX4ht/source/mktex4ht-cnf.tex b/support/TeX4ht/source/mktex4ht-cnf.tex
index baaa811433..14e936ccd0 100644
--- a/support/TeX4ht/source/mktex4ht-cnf.tex
+++ b/support/TeX4ht/source/mktex4ht-cnf.tex
@@ -1,4 +1,4 @@
-% $Id: mktex4ht-cnf.tex 1325 2023-04-21 13:23:46Z michal_h21 $
+% $Id: mktex4ht-cnf.tex 1349 2023-07-25 14:28:00Z michal_h21 $
% Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex.
% Read by tex4ht-cond4ht.
%
@@ -136,6 +136,7 @@
\AddFile{5}{amstex1}
\AddFile{9}{braket}
\AddFile{9}{mathtools}
+\AddFile{9}{mathtools-hooks}
\AddFile{9}{llncs}
\AddFile{9}{llncs-a}
\AddFile{9}{lncse}
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index bccb26c5a2..5e2194d73c 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1339 2023-06-11 15:01:09Z karl $
+% $Id: tex4ht-4ht.tex 1349 2023-07-25 14:28:00Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -22080,6 +22080,45 @@ $\m@th\displaystyle{{}#}$%
\NewConfigure{dcases*}{6}
>>>
+\<add to usepackage\><<<
+\Configure{PackageHooks}{mathtools.sty}{mathtools-hooks.4ht}
+>>>
+
+\<mathtools-hooks.4ht\><<<
+% mathtools-hooks.4ht, generated from |jobname.tex
+% Copyright 2023 TeX Users Group
+|<TeX4ht license text|>
+|<mathtools inner wrapper|>
+>>>
+\AddFile{9}{mathtools-hooks}
+
+
+This should prevent compilation errors with commands declared using \''\DeclarePairedDelimiter' and MathML.
+We need to patch the command at the moment when it is declared, so it must be available
+already in the preamble. This is why we use early hooks.
+
+\<mathtools inner wrapper\><<<
+\ExplSyntaxOn
+\:AtEndOfPackage{
+\renewcommand\MT_delim_default_inner_wrappers:n [1]{
+ \@namedef{MT_delim_\MH_cs_to_str:N #1 _star_wrapper:nnn}##1##2##3{
+ \ifx\EndPicture\undefined
+ \bgroup ##1 ##2 ##3\egroup
+ \else
+ \mathopen{}\mathclose\bgroup ##1 ##2 \aftergroup\egroup ##3
+ \fi
+ }
+ \@namedef{MT_delim_\MH_cs_to_str:N #1 _nostarscaled_wrapper:nnn}##1##2##3{
+ \mathopen{##1}##2\mathclose{##3}
+ }
+ \@namedef{MT_delim_\MH_cs_to_str:N #1 _nostarnonscaled_wrapper:nnn}##1##2##3{
+ \mathopen##1##2\mathclose##3
+ }
+ }
+}
+\ExplSyntaxOff
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%
\Chapter{Other}
%%%%%%%%%%%%%%%%%%%%%%
@@ -32410,7 +32449,10 @@ Configure list of listings
\expandafter\lstset\expandafter{\lst@set}%
\lsthk@DisplayStyle%
\catcode\active=\active%
- \a:lstinputlisting\ht:special{t4ht@[}\lst@Init\relax \let\lst@gobble\z@%
+ \a:lstinputlisting\ht:special{t4ht@[}
+ \pend:def\cptA:{\ht:special{t4ht@]}}
+ \append:def\cptD:{\ht:special{t4ht@[}}
+ \lst@Init\relax \let\lst@gobble\z@%
\lst@SkipToFirst%
\lst@ifprint \def\lst@next{\input{#1}}%
\else \let\lst@next\@empty \fi%