summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex13
1 files changed, 12 insertions, 1 deletions
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