Thursday, January 31, 2013

MathML Samples

Latest version of Google Chrome now supports MathML for presenting math expressions.
(Firefox also supports MathML, IE10 does not yet)

It is nice that some sites offer "fallback" to using HTML+CSS or SVG,
and that works even in browsers that do not support "native" MathML.

MathML Samples 

The Quadratic Formula

x=b±b24ac2a

How does MathML looks like?
It is based on XML, and relatively compact.
But like with any XML, it is better to use tools for editing...

<math display="block"><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mo>−</mo><mi>b</mi><mo>±</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>−</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></mrow></math><br />

Boxes, Boxes, and More Boxes

No comments: