diff options
author | Karl Berry <karl@freefriends.org> | 2023-09-04 20:40:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-09-04 20:40:09 +0000 |
commit | f5385d2d7ca2d01d50d6aecc1052310cdb3e163d (patch) | |
tree | 771883efce3ec6804a1137b7041a84b7f14a314f /Master/texmf-dist/source/generic | |
parent | 4f123d2196adfa83bd193885b7596282d59f2b83 (diff) |
spacing for \limsup, \liminf, etc., tex4ht r1365
git-svn-id: svn://tug.org/texlive/trunk@68174 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 10 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex | 47 |
2 files changed, 41 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 731d18e0986..0a560ca3b67 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,13 @@ +2023-09-04 Michal Hoftich <michal.h21@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@freefriends.org> + + * tex4ht-mkht.tex: ChangeLog. + 2023-08-31 Michal Hoftich <michal.h21@gmail.com> * tex4ht-html4.tex (html4.4ht): calculate padding for individual diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex index 1af96d34dbe..a8cc0ec955f 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1356 2023-08-13 18:48:02Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1365 2023-09-04 14:49:39Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -2454,21 +2454,31 @@ reduced.) 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 @@ this in the texbook.) >>> -\<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 @@ but not \verb=$\mathop{div} (\mathbf{F})$= \expandafter\HLet\csname #1\endcsname\:tempc } \:tempb{lim} -\:tempb{limsup} -\:tempb{liminf} +% \:tempb{limsup} +% \:tempb{liminf} \:tempb{max} \:tempb{min} \:tempb{sup} @@ -3486,6 +3489,18 @@ but not \verb=$\mathop{div} (\mathbf{F})$= \: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 >>> %%%%%%%%%%%%%%% |