texlive[64195] Master/texmf-dist: \left \right robust, tex4ht r1189
commits+karl at tug.org
commits+karl at tug.org
Thu Aug 25 22:36:21 CEST 2022
Revision: 64195
http://tug.org/svn/texlive?view=revision&revision=64195
Author: karl
Date: 2022-08-25 22:36:21 +0200 (Thu, 25 Aug 2022)
Log Message:
-----------
\left \right robust, tex4ht r1189
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1189
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-08-25 20:22:29 UTC (rev 64194)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-08-25 20:36:21 UTC (rev 64195)
@@ -1,3 +1,8 @@
+2022-08-25 Michal Hoftich <michal.h21 at 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 at gmail.com>
* tex4ht-html4.4ht (html4.4ht): redefine meaning of \% inside of the
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2022-08-25 20:22:29 UTC (rev 64194)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2022-08-25 20:36:21 UTC (rev 64195)
@@ -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 @@
\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
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht 2022-08-25 20:22:29 UTC (rev 64194)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht 2022-08-25 20:36:21 UTC (rev 64195)
@@ -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 at m@s
\prim at s}
@@ -2318,7 +2322,7 @@
\expandafter\:temp\usepackage!*?:
\def\:tempa{\@latex at 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 @@
%
% 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}$}}}
More information about the tex-live-commits
mailing list.