From d2eaa62649034acb20d46029b494d15536c0ed89 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 25 Aug 2022 20:36:21 +0000 Subject: \left \right robust, tex4ht r1189 git-svn-id: svn://tug.org/texlive/trunk@64195 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 5 +++++ Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index f2f15434294..1fb5e6da0f4 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,8 @@ +2022-08-25 Michal Hoftich + + * tex4ht-4ht.tex (latex.4ht): make \left and \right commands robust. + https://puszcza.gnu.org.ua/bugs/?423 + 2022-08-22 Michal Hoftich * tex4ht-html4.4ht (html4.4ht): redefine meaning of \% inside of the diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index c5db34f7880..729c5d9b00b 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex +++ b/Master/texmf-dist/source/generic/tex4ht/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. + +\<<< +\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 +>>> + \<<< \def\:tempc{\relax\csname a:,\endcsname} \HLet\,=\:tempc -- cgit v1.2.3