[Wikipedia-l] Math markup

Toby Bartels toby+wikipedia at math.ucr.edu
Wed Oct 30 18:41:35 UTC 2002


>why not MathML? its a standard, its already supported by mozilla/netscape,
>and their derivatives, and sooner or later MS will have to add it to IE.. i
>just think this is the way to go...

As markup used for *input*???


HTML:
2 + 2 = 4

PediaWiki:
2 + 2 = 4

LaTeX:
$2+2=4$

MathML:
<math><mrow><mrow><mn>2</mn><mo>+</mo><mn>2</mn></mrow><mo>=</mo><mn>4</mn></mrow></math>


HTML:
<pre>
    &minus;<i>b</i> &plusmn; &radic;(<i>b</i><sup>2</sup> &minus; 4<i>a</i><i>c</i>)
<i>x</i> = ----------------
           2<i>a</i>
</pre>

PediaWiki:
     &minus;<i>b</i> &plusmn; &radic;(<i>b</i><sup>2</sup> &minus; 4<i>a</i><i>c</i>)
 <i>x</i> = ----------------
            2<i>a</i>

LaTeX:
$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$

MathML:
<math><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mrow><mo>-</mo><mi>b</mi></mrow><mo>&PlusMinus;</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>-</mo><mrow><mn>4</mn><mo>&InvisibleTimes;</mo><mi>a</mi><mo>&InvisibleTimes;</mo><mi>c</mi></mrow></mrow></msqrt></mrow><mrow><mn>2</mn><mo>&InvisibleTimes;</mo><mi>a</mi></mrow></mfrac></mrow></math>


-- Toby



More information about the Wikipedia-l mailing list