mozilla

Revision 46908 of MathML

  • Revision slug: MathML
  • Revision title: MathML
  • Revision id: 46908
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment reformatting; 66 words added, 16 words removed
Tags: 

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. Support for MathML 3 is in process.

Documentation

MathML project page
Information about the MathML project in Mozilla.
Authoring MathML for Mozilla
How generate readable MathML for Mozilla with additional tools.
Fonts for MathML-enabled Mozilla
Information about suitable Unicode fonts

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>

View All...

Community

  • View Mozilla forums...

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

Tools

View All...

Related Topics

HTML, SVG, XML, XUL

{{ 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. Support for <a class="external" href="http://www.w3.org/TR/MathML3/" title="http://www.w3.org/TR/MathML3/">MathML 3</a> is <a href="/en/Mozilla_MathML_Project/Status">in process</a>.</p>
<table class="topicpage-table"> <tbody> <tr> <td> <h4><a href="/Special:Tags?tag=MathML&amp;language=en" title="Special:Tags?tag=MathML&amp;language=en">Documentation</a></h4> <dl> <dt><a href="/en/Mozilla_MathML_Project">MathML project page</a></dt> <dd><small>Information about the MathML project in Mozilla.</small></dd> <dt><a href="/en/Mozilla_MathML_Project/Authoring">Authoring MathML for Mozilla</a></dt> <dd><small>How generate readable MathML for Mozilla with additional tools.</small></dd> <dt><a href="/en/Mozilla_MathML_Project/Fonts">Fonts for MathML-enabled Mozilla</a></dt> <dd><small>Information about suitable Unicode fonts</small></dd> </dl> <h4>Example in XHTML</h4> <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> <p><span class="alllinks"><a href="/Special:Tags?tag=MathML&amp;language=en" title="Special:Tags?tag=MathML&amp;language=en">View All...</a></span></p> </td> <td> <h4>Community</h4> <ul> <li>View Mozilla forums...</li> </ul> <p>{{ DiscussionList("dev-tech-mathml", "mozilla.dev.tech.mathml") }}</p> <h4>Tools</h4> <ul> <li><a class=" external" href="http://validator.w3.org">W3C Validator</a></li> <li><a class="link-https" href="https://addons.mozilla.org/de/firefox/addon/8969/">FireMath Firefox extension</a></li> </ul> <p><span class="alllinks"><a href="/Special:Tags?tag=MathML:Tools&amp;language=en" title="Special:Tags?tag=MathML:Tools&amp;language=en">View All...</a></span></p> <h4>Related Topics</h4> <dl> <dd><a href="/en/HTML" title="en/HTML">HTML</a>, <a href="/en/SVG" title="en/SVG">SVG</a>, <a href="/en/XML" title="en/XML">XML</a>, <a href="/en/XUL" title="en/XUL">XUL</a></dd> </dl> </td> </tr> </tbody>
</table>
<p>{{ languages( { "ja": "ja/MathML", "pl": "pl/MathML", "cs": "cs/MathML", "ko": "ko/MathML" } ) }}</p>
Revert to this revision