[tex4ht-commits] [SCM] tex4ht updated: r1189 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Aug 25 13:20:43 CEST 2022


Author: michal_h21
Date: 2022-08-25 11:20:43 +0000 (Thu, 25 Aug 2022)
New Revision: 1189

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
make \left and \right robust

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-08-22 15:11:36 UTC (rev 1188)
+++ trunk/lit/ChangeLog	2022-08-25 11:20:43 UTC (rev 1189)
@@ -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/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-08-22 15:11:36 UTC (rev 1188)
+++ trunk/lit/tex4ht-4ht.tex	2022-08-25 11:20:43 UTC (rev 1189)
@@ -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



More information about the tex4ht-commits mailing list.