texlive[76072] Master/texmf-dist/source/generic/tex4ht: \MathMLintent
commits+karl at tug.org
commits+karl at tug.org
Sat Aug 16 21:30:22 CEST 2025
Revision: 76072
https://tug.org/svn/texlive?view=revision&revision=76072
Author: karl
Date: 2025-08-16 21:30:21 +0200 (Sat, 16 Aug 2025)
Log Message:
-----------
\MathMLintent and \MATHMLarg, tex4ht r1729
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1729
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-08-16 18:56:23 UTC (rev 76071)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-08-16 19:30:21 UTC (rev 76072)
@@ -1,3 +1,10 @@
+2025-08-16 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-mathml.tex (mathml.4ht): added support for \MathMLintent
+ and \MathMLarg commands, which should add accessibility support in
+ MathML.
+ Thanks to David Carlisle for the suggestion.
+
2025-08-14 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html4.tex (html4.4ht): removed vertical spacing for
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex 2025-08-16 18:56:23 UTC (rev 76071)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex 2025-08-16 19:30:21 UTC (rev 76072)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1692 2025-06-05 15:58:08Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1729 2025-08-16 13:47:49Z michal_h21 $$
% compile 3 times: latex tex4ht-mathltx
% or xhlatex tex4ht-mathltx "html,3,sections+"
%
@@ -3550,8 +3550,33 @@
>>>
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Accessibility}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+MathML core specification provides a new way to specify
+an accessible description of mathematical expressions, using the
+\Link[https://w3c.github.io/mathml-docs/intent-explainer/]{}{}intent attribute\EndLink.
+\LaTeX{} will provide commands to set the intent attribute for
+mathematical expressions. We can redefine these commands
+to insert the necessary attributes in the MathML output.
+\<mathml latex\><<<
+\ifdefined\MathMLintent
+\RenewDocumentCommand{\MathMLintent}{mm}{{%
+ \def\${$}% Fix support for the \$ command
+ \HCode{<mrow intent="#1">}#2\HCode{</mrow>}%
+}}
+\fi
+
+\ifdefined\MathMLarg
+\RenewDocumentCommand\MathMLarg{mm}{%
+ \HCode{<mrow arg="#1">}#2\HCode{</mrow>}%
+}
+\fi
+>>>
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Limits of Sub- snd Super- Scripts}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex-live-commits
mailing list.