This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

MathMLForm

MathMLForm[expr]
prints as a MathML form of expr.
  • MathMLForm gives presentation MathML, although its output can normally be interpreted by Mathematica.
  • MathMLForm acts as a "wrapper", which affects printing, but not evaluation.
  • MathMLForm gives special characters using HTML aliases.
A typeset expression:
A special character:
A typeset expression:
In[1]:=
Click for copyable input
Out[1]//MathMLForm=
 
A special character:
In[1]:=
Click for copyable input
Out[1]//MathMLForm=
Subscripts and superscripts:
Overscripts and underscripts:
List structures:
A matrix:
Logic operations:
A definite sum:
A special function:
MathMLForm gives MathML for the TraditionalForm expression:
Obtain MathML for the expression in StandardForm:
Convert an expression to MathML:
Use ToExpression to convert MathML back to Mathematica syntax:
Use ToExpression to convert from any MathML to Mathematica:
Use Export to generate a MathML document, including semantic markup:
Add formatting via Format:
New in 4.1