Changes
Jump to navigation
Jump to search
no edit summary
< [[Math]] | [[MathML]] | [[XML]] >
Here is a complete and simple example of a ConTeXt file including MathML:
<xmlcode>
\usemodule[mathml]
\starttext
\startXMLdata
<math>
<mrow>
<msup> <mi>x</mi><mn>2</mn> </msup>
<mo>+</mo>
<mrow>
<mn>4</mn><mo>⁢</mo><mi>x</mi>
</mrow>
<mo>+</mo>
<mn>4</mn>
</mrow>
</math>
\stopXMLdata
\stoptext
</xmlcode>
That gives:
<context>
\usemodule[mathml]
\starttext
\startXMLdata
<math>
<mrow>
<msup> <mi>x</mi><mn>2</mn> </msup>
<mo>+</mo>
<mrow>
<mn>4</mn><mo>⁢</mo><mi>x</mi>
</mrow>
<mo>+</mo>
<mn>4</mn>
</mrow>
</math>
\stopXMLdata
\stoptext
</context>
MathML support in ConTeXt is very extensive, but some features are rather hidden for now.