texlive[74318] branches/branch2024.final/Master/texmf-dist: branch

commits+karl at tug.org commits+karl at tug.org
Wed Feb 26 23:11:50 CET 2025


Revision: 74318
          https://tug.org/svn/texlive?view=revision&revision=74318
Author:   karl
Date:     2025-02-26 23:11:49 +0100 (Wed, 26 Feb 2025)
Log Message:
-----------
branch sync, tex4ht r1651

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1651

Modified Paths:
--------------
    branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
    branches/branch2024.final/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht

Modified: branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2025-02-26 22:10:55 UTC (rev 74317)
+++ branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2025-02-26 22:11:49 UTC (rev 74318)
@@ -1,3 +1,7 @@
+2025-02-26  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathml.tex (mathml.4ht): declare formatting for \sin etc. 
+
 2025-02-25  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): fixed \HtmlParON bug in recent

Modified: branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex	2025-02-26 22:10:55 UTC (rev 74317)
+++ branches/branch2024.final/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex	2025-02-26 22:11:49 UTC (rev 74318)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1626 2025-01-09 21:25:52Z karl $$
+% $Id: tex4ht-mathml.tex 1651 2025-02-26 11:32:51Z michal_h21 $$
 % compile 3 times: latex tex4ht-mathltx
 %           or   xhlatex tex4ht-mathltx "html,3,sections+"
 %
@@ -437,30 +437,27 @@
 }
 
 \: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}
+\: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\><<<
@@ -2843,6 +2840,42 @@
     \HCode{</\a:mathml mtd>}}
 >>>
 
+Fix MathML arrows with MathTools.
+
+\<configure mathml mathtools\><<<
+% support bidirectional harpoons
+\def\:leftrightharpoons{\HCode{<\a:mathml mo stretchy="true">}\PauseMathClass\x:unicode{21CC}\EndPauseMathClass\HCode{</\a:mathml mo>}}
+\def\:righleftharpoons{\HCode{<\a:mathml mo stretchy="true">}\PauseMathClass\x:unicode{21CB}\EndPauseMathClass\HCode{</\a:mathml mo>}}
+
+\providecommand*\:xleftrightharpoons[2][]{%
+\ext at arrow 3095\:leftrightharpoons{#1}{#2}}
+
+\providecommand*\:xrightleftharpoons[2][]{%
+\ext at arrow 3095\:leftrightharpoons{#1}{#2}}
+
+\HLet\xleftrightharpoons\:xleftrightharpoons
+\HLet\xrightleftharpoons\:xrightleftharpoons
+
+% correctly place text under and over arrows
+\def\:tempa#1#2#3#4#5#6#7{%
+  \bgroup%
+  \def\relbar{}% remove relbar in arrow fills
+  \def\arrowfill@##1##2##3##4{##1##2##3##4}% remove arrowfill@, to prevent errors
+  \@ifempty{#7}{%
+    \HCode{<\a:mathml munder><\a:mathml mrow><\a:mathml mo stretchy="true">}\PauseMathClass#5{}\EndPauseMathClass\HCode{</\a:mathml mo></\a:mathml mrow><\a:mathml mrow>}#6\HCode{</\a:mathml mrow></\a:mathml munder>}%
+  }{%
+    \@ifempty{#6}{%
+      \HCode{<\a:mathml mover><\a:mathml mrow><\a:mathml mo stretchy="true">}\PauseMathClass#5{}\EndPauseMathClass\HCode{</\a:mathml mo></\a:mathml mrow><\a:mathml mrow>}#7\HCode{</\a:mathml mrow></\a:mathml mover>}%
+    }{%
+      \HCode{<\a:mathml munderover><\a:mathml mrow><\a:mathml mo stretchy="true">}\PauseMathClass#5{}\EndPauseMathClass\HCode{</\a:mathml mo></\a:mathml mrow><\a:mathml mrow>}#6\HCode{</\a:mathml mrow><\a:mathml mrow>}#7\HCode{</\a:mathml mrow></\a:mathml munderover>}%
+    }%
+  }%
+  \egroup
+}
+
+\HLet\ext at arrow\:tempa
+>>>
+
 %%%%%%%%%%%%%%%%%%
 \section{Gaus}
 %%%%%%%%%%%%%%%%%%

Modified: branches/branch2024.final/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht	2025-02-26 22:10:55 UTC (rev 74317)
+++ branches/branch2024.final/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht	2025-02-26 22:11:49 UTC (rev 74318)
@@ -1,4 +1,4 @@
-% mathml.4ht (2025-02-12-14:12), generated from tex4ht-mathml.tex
+% mathml.4ht (2025-02-26-14:10), generated from tex4ht-mathml.tex
 % Copyright 2009-2025 TeX Users Group
 % Copyright 1999-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2025-02-12-14:12}
+\immediate\write-1{version 2025-02-26-14:10}
 
 \exit:ifnot{Preamble,% 
 accents,% 
@@ -545,30 +545,27 @@
 }
 
 \: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}
+\: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}
 \Configure{hspace}
   {\ifmathml\ifmtext\else \Tg<\a:mathml mspace width="\the\tmp:dim"/>\fi\fi}{}{ }
 \Configure{romannumeral}



More information about the tex-live-commits mailing list.