ExpressionToMathML

Same functionality now provided by ExportString[expr, {"MathML", "Expression"}].

ExpressionToMathML[expr]
converts the Mathematica expression, expr, into a MathML-flavored XML text string.

更多信息更多信息

  • To use , you first need to load the XML Package using Needs["XML`"].
  • The output is in both presentation and content MathML wherever possible.
  • The following options can be given:
  • "Annotations"{}annotations to add to the output (acceptable values are combinations of , , and )
    "AttributeQuoting""'"character used to quote attribute values
    "CheckXML"Truewhether to check the output for errors
    "ElementFormatting"Automaticcontrols indenting in the output
    "Entities"Nonehow to represent special characters as named entities
    "Formats"{"PresentationMathML","ContentMathML"}type of MathML markup to generate
    "IncludeMarkupAnnotations"Truewhether to add annotation when exporting a formula with constructs specific to Mathematica and no clear counterpart in MathML
    "MathAttributes"{}attributes to add to the root element of the MathML
    "NamespacePrefixes"{}specifies namespace declaration and prefix
    "UseUnicodePlane1Characters"Truewhether to replace plane 1 Unicode characters with similar plane 0 characters
New to Mathematica? Find your learning path »
Have a question? Ask support »