Open main menu

Changes

623 bytes added ,  13:16, 4 December 2007
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>&InvisibleTimes;</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>&InvisibleTimes;</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.
Anonymous user