summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/TeX4ht/source/ChangeLog5
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex13
2 files changed, 17 insertions, 1 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index f2f1543429..1fb5e6da0f 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-25 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (latex.4ht): make \left and \right commands robust.
+ https://puszcza.gnu.org.ua/bugs/?423
+
2022-08-22 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-html4.4ht (html4.4ht): redefine meaning of \% inside of the
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index c5db34f788..729c5d9b00 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1186 2022-08-17 21:26:24Z karl $
+% $Id: tex4ht-4ht.tex 1189 2022-08-25 11:20:43Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -7655,6 +7655,17 @@ this way originally. These configurations are used in the MathML mode.
\Configure{>}{\mskip\medmuskip}
>>>
+We need to make some commands robust, using the ProvideDocumentCommand.
+This should prevent fatal errors when such commands are used in sections
+or captions.
+
+\<latex math\><<<
+\ProvideDocumentCommand\left:temp{m}{\a:left{#1}\o:left:#1\b:left{#1}}
+\HLet\left\left:temp
+\ProvideDocumentCommand\right:temp{m}{\a:right{#1}\o:right:#1\b:right{#1}}
+\HLet\right\right:temp
+>>>
+
\<plain math\><<<
\def\:tempc{\relax\csname a:,\endcsname}
\HLet\,=\:tempc