diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-mathml.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-mathml.tex | 52 |
1 files changed, 46 insertions, 6 deletions
diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex index 89ea374972..e7f496d6bf 100644 --- a/support/TeX4ht/source/tex4ht-mathml.tex +++ b/support/TeX4ht/source/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1490 2024-03-08 11:45:26Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1495 2024-03-21 16:39:31Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -422,6 +422,47 @@ xmlns="http://www.w3.org/1999/xhtml" |<lim inf/sup|> >>> +This should provide correct formatting for built-in log function. By default, it is printed +in italic and without space that would separate it from the following element. + +\<mathml latex\><<< +\def\:tempa#1#2{% + \def\:tempb{\mathop{\PauseMathClass% + \HCode{<\a:mathml mi \mml:class="loglike">} #2\HCode{</\a:mathml mi>% + <\a:mathml mo>&\#x2061;<!--FUNCTION APPLICATION--></\a:mathml mo>}\EndPauseMathClass% + }\nolimits + } + \HLet#1\:tempb + \MakeRobust#1 +} + +\:tempa\log{log} +% it seems that the other functions work correctly, +% so we don't need to redefine them, but I will keep +% them here if we want to do that in the future. +% \:tempa\lg{lg} +% \:tempa\ln{ln} +% \:tempa\sin{sin} +% \:tempa\arcsin{arcsin} +% \:tempa\sinh{sinh} +% \:tempa\cos{cos} +% \:tempa\arccos{arccos} +% \:tempa\cosh{cosh} +% \:tempa\tan{tan} +% \:tempa\arctan{arctan} +% \:tempa\tanh{tanh} +% \:tempa\cot{cot} +% \:tempa\coth{coth} +% \:tempa\sec{sec} +% \:tempa\csc{csc} +% \:tempa\arg{arg} +% \:tempa\ker{ker} +% \:tempa\dim{dim} +% \:tempa\hom{hom} +% \:tempa\exp{exp} +% \:tempa\deg{deg} +>>> + \<limit functionsNO\><<< \def\:tempb#1{% \def\:tempc##11->##2///{\if :##2:% @@ -2500,8 +2541,8 @@ for more details. \<configure mathml amsopn\><<< \Configure{qopname} {\Configure{mathop}{*} - {<\a:mathml mtext \mml:class="qopname">} - {</\a:mathml mtext><mo> &\#x2061;<!--FUNCTION APPLICATION--> </mo>} + {<\a:mathml mi \mml:class="qopname">} + {</\a:mathml mi><\a:mathml mo> &\#x2061;<!--FUNCTION APPLICATION--> </\a:mathml mo>} {}} >>> @@ -3234,7 +3275,7 @@ Accent versus underscript: \verb=\underbrace{x+y+z}= \<mathml plain,fontmath\><<< \Configure{MathClass}{0}{*}{<\a:mathml mi\Hnewline>}{</\a:mathml mi>}{} \Configure{MathClass}{1}{*}{<\a:mathml mi\Hnewline - \mml:class="MathClass-op">}{</\a:mathml mi><mo> &\#x2061;<!--FUNCTION APPLICATION--></mo>}{} + \mml:class="MathClass-op">}{</\a:mathml mi><\a:mathml mo> &\#x2061;<!--FUNCTION APPLICATION--></\a:mathml mo>}{} \Configure{MathClass}{2}{*}{<\a:mathml mo\Hnewline \mml:class="MathClass-bin" \a:mathml stretchy="false">}{</\a:mathml mo>}{} \Configure{MathClass}{3}{*}{<\a:mathml mo\Hnewline @@ -3567,8 +3608,7 @@ from tex4ht-info.tex. \<configure mathml latex\><<< \AtBeginDocument{% -\Configure{mathop*}{*}{}{} - { \Configure{mathop}{*}{<mo>}{</mo>}{} } +\Configure{mathop*}{*}{}{}{\Configure{mathop}{*}{<\a:mathml mo>}{</\a:mathml mo>}{}} } >>> |