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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Sep 4 16:49:39 CEST 2023


Author: michal_h21
Date: 2023-09-04 14:49:39 +0000 (Mon, 04 Sep 2023)
New Revision: 1365

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathml.tex
Log:
fixed spacing in \liminf and \limsup

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-09-03 15:50:59 UTC (rev 1364)
+++ trunk/lit/ChangeLog	2023-09-04 14:49:39 UTC (rev 1365)
@@ -1,3 +1,9 @@
+2023-09-04  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathml.tex (mathml.4ht): fixed spacing in \limsup,
+	\liminf and few other two word operators.
+	https://github.com/michal-h21/make4ht/issues/133
+
 2023-09-03  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-mkht.tex: ChangeLog.

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2023-09-03 15:50:59 UTC (rev 1364)
+++ trunk/lit/tex4ht-mathml.tex	2023-09-04 14:49:39 UTC (rev 1365)
@@ -2454,21 +2454,31 @@
 
 
 The original definitions for the following macros contain small spaces
-\verb+\,+ in the names, and the spaces imply improper mathml outcome
-of the form \verb+<mo>...<mspace.../>...</mo>+.
+\verb+\,+ in the names, we need to use explicit tags to support them
+correctly.
 
+See \Link{https://github.com/michal-h21/make4ht/issues/133}{}this report\EndLink 
+for more details.
 
+
 \<configure mathml amsopn\><<<
-\def\:tempc{\qopname\relax m{lim inf}}
+\def\:tempc{\qopname\relax m{\:limspaces{lim}{inf}}}
 \HLet\liminf=\:tempc
-\def\:tempc{\qopname\relax m{lim sup}}
+\def\:tempc{\qopname\relax m{\:limspaces{lim}{sup}}}
 \HLet\limsup=\:tempc
-\def\:tempc{\qopname\relax m{proj lim}} 
+\def\:tempc{\qopname\relax m{\:limspaces{proj}{lim}}}
 \HLet\projlim=\:tempc
-\def\:tempc{\qopname\relax m{inj lim}}
+\def\:tempc{\qopname\relax m{\:limspaces{inj}{lim}}}
 \HLet\injlim=\:tempc
 >>>
 
+\<configure mathml amsopn\><<<
+\Configure{qopname}
+   {\Configure{mathop}{*}
+      {<\a:mathml mrow \mml:class="qopname">}
+  {</\a:mathml mrow><mo> &\#x2061;<!--FUNCTION APPLICATION--> </mo>}
+      {}}
+>>>
 
 
 
@@ -2489,13 +2499,6 @@
 >>>
 
 
-\<configure mathml amsopn\><<<
-\Configure{qopname}
-   {\Configure{mathop}{*}
-      {<\a:mathml mi \mml:class="qopname">}
-  {</\a:mathml mi><mo> &\#x2061;<!--FUNCTION APPLICATION--> </mo>}
-      {}}
->>>
 
 The following CSS caused too large whitespace around functions
 %\Css{mi.qopname + mo{margin-left:0.3em}}
@@ -3477,8 +3480,8 @@
    \expandafter\HLet\csname #1\endcsname\:tempc
 }
 \:tempb{lim}
-\:tempb{limsup}
-\:tempb{liminf}
+% \:tempb{limsup}
+% \:tempb{liminf}
 \:tempb{max}
 \:tempb{min}
 \:tempb{sup}
@@ -3486,8 +3489,20 @@
 \:tempb{det}
 \:tempb{Pr}
 \:tempb{gcd}
+
+
 >>>
 
+We need a special configuration for these two word operators, in order to get a good spacing.
+
+\<configure mathml latex\><<<
+\def\:limspaces#1#2{\HCode{<\a:mathml mi>#1</\a:mathml mi><\a:mathml mspace class="thinspace"  width="0.17em"></\a:mathml mspace><\a:mathml mi>#2</\a:mathml mi><\a:mathml mspace class="thinspace" width="0.17em"></\a:mathml mspace>}}
+\def\:tempa{\mathop{\:limspaces{lim}{sup}}\limits}
+\HLet\limsup\:tempa
+\def\:tempa{\mathop{\:limspaces{lim}{inf}}\limits}
+\HLet\liminf\:tempa
+>>>
+
 %%%%%%%%%%%%%%%
 \subsection{Upright letters}
 %%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.