diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-25 20:36:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-25 20:36:21 +0000 |
commit | d2eaa62649034acb20d46029b494d15536c0ed89 (patch) | |
tree | 700cad2f7d480772109d62e7f0092810a83d706e | |
parent | a1617b1545eaa36a16482450655d6282b020be91 (diff) |
\left \right robust, tex4ht r1189
git-svn-id: svn://tug.org/texlive/trunk@64195 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 5 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex | 13 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/latex.4ht | 12 |
3 files changed, 25 insertions, 5 deletions
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 <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/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. + +\<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 diff --git a/Master/texmf-dist/tex/generic/tex4ht/latex.4ht b/Master/texmf-dist/tex/generic/tex4ht/latex.4ht index 40886972129..ddd173d63ea 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/latex.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/latex.4ht @@ -1,4 +1,4 @@ -% latex.4ht (2022-08-07-07:59), generated from tex4ht-4ht.tex +% latex.4ht (2022-08-25-13:24), generated from tex4ht-4ht.tex % Copyright 1997-2009 Eitan M. Gurari % Copyright 2009-2022 TeX Users Group % @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-08-07-07:59} +\immediate\write-1{version 2022-08-25-13:24} \ifx\SaveMkHalignConf:g\:UnDef \else \expandafter\endinput\fi @@ -816,6 +816,10 @@ \Configure{!}{\mskip-\thinmuskip} \Configure{:}{\mskip\medmuskip} \Configure{>}{\mskip\medmuskip} +\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\:temp{\csname a:'\endcsname \bgroup \aftergroup\:pr@m@s \prim@s} @@ -2318,7 +2322,7 @@ $\vcenter \expandafter\:temp\usepackage!*?: \def\:tempa{\@latex@e@error} \ifx \:temp\:tempa - % latex209.4ht (2022-08-07-07:59), generated from tex4ht-4ht.tex + % latex209.4ht (2022-08-25-13:24), generated from tex4ht-4ht.tex % Copyright 1997-2009 Eitan M. Gurari % Copyright 2009-2022 TeX Users Group % @@ -2337,7 +2341,7 @@ $\vcenter % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-08-07-07:59} +\immediate\write-1{version 2022-08-25-13:24} \let\:fnsymbol\@fnsymbol \def\@fnsymbol#1{{\hbox{$\:fnsymbol{#1}$}}} |