MathML

  • Revision slug: MathML
  • Revision title: MathML
  • Revision id: 46906
  • Created:
  • Creator: fred.wang
  • Is current revision? No
  • Comment Update intro, example (replace XUL by XHTML. BTW the XUL bug is fixed on trunk), links and languages; 187 words added, 85 words removed

Revision Content

Mathematical Markup Language (MathML) is an XML markup language for describing mathematical notations. As of Firefox 1.5, most of the presentation markup from the MathML 2.0 W3C Recommendation is supported on all platforms.

Example in XHTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
      "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>MathML Example</title>
</head>

<body>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mfrac>
    <msubsup>
      <mi>a</mi>
      <mi>i</mi>
      <mi>j</mi>
    </msubsup>
    <msub>
      <mi>x</mi>
      <mn>0</mn>
    </msub>
  </mfrac>
  <mo>−</mo>
  <msqrt>
    <msup>
      <mi>δ</mi>
      <mn>2</mn>
    </msup>
    <mo>−</mo>
    <mn>1</mn>
  </msqrt>
</math>
</body>
</html>

Documents

Community

View Mozilla forums...

    {{ DiscussionList("dev-tech-mathml", "mozilla.dev.tech.mathml") }}

{{ languages( { "ja": "ja/MathML", "pl": "pl/MathML", "cs": "cs/MathML", "ko": "ko/MathML" } ) }}

Revision Source

<p><strong>Mathematical Markup Language (MathML)</strong> is an <a href="/en/XML" title="en/XML">XML</a> markup language for describing mathematical notations. As of Firefox 1.5, most of the presentation markup from the <a class=" external" href="http://www.w3.org/TR/MathML2/">MathML 2.0 W3C Recommendation</a> is supported on all platforms.</p>
<h2>Example in XHTML</h2>
<pre class="brush: html">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
      "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
  &lt;title&gt;MathML Example&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
  &lt;mfrac&gt;
    &lt;msubsup&gt;
      &lt;mi&gt;a&lt;/mi&gt;
      &lt;mi&gt;i&lt;/mi&gt;
      &lt;mi&gt;j&lt;/mi&gt;
    &lt;/msubsup&gt;
    &lt;msub&gt;
      &lt;mi&gt;x&lt;/mi&gt;
      &lt;mn&gt;0&lt;/mn&gt;
    &lt;/msub&gt;
  &lt;/mfrac&gt;
  &lt;mo&gt;−&lt;/mo&gt;
  &lt;msqrt&gt;
    &lt;msup&gt;
      &lt;mi&gt;δ&lt;/mi&gt;
      &lt;mn&gt;2&lt;/mn&gt;
    &lt;/msup&gt;
    &lt;mo&gt;−&lt;/mo&gt;
    &lt;mn&gt;1&lt;/mn&gt;
  &lt;/msqrt&gt;
&lt;/math&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h2 name="Documents">Documents</h2>
<ul> <li><a href="/en/Mozilla_MathML_Project" title="en/Mozilla MathML Project">MathML project page</a></li> <li><a href="/en/Mozilla_MathML_Project/Authoring" title="en/Mozilla MathML Project/Authoring">Authoring MathML for Mozilla</a></li> <li><a href="/en/Mozilla_MathML_Project/Fonts" title="en/Mozilla MathML Project/Fonts">Fonts for MathML-enabled Mozilla</a></li>
</ul>
<h2 name="Community">Community</h2>
<p>View Mozilla forums...</p>
<ul> {{ DiscussionList("dev-tech-mathml", "mozilla.dev.tech.mathml") }} </ul> <p>{{ languages( { "ja": "ja/MathML", "pl": "pl/MathML", "cs": "cs/MathML", "ko": "ko/MathML" } ) }}</p>
Revert to this revision