Subject: embedding MathML

Posted on: 19/01/08 12:31pm
By: Benta

Guys,

Take a look at this page (in FF, IE is horrible with MathML):

http://www.orcca.on.ca/~elena/useful/AboutMathML/MathML.xhtml

The math looks good, right?

Cut and paste the math stuff into a article in GL, and it still shows up as math - but much uglier.

I tried also to insert math like the stuff below in a file with xml-tags as an HTML enabled article, same thing.

What the heck is going on? What is needed (perhaps something in the template?) to make FF show the mathml code correctly?

PHP Formatted Code
<?xml version='1.0'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN'
  'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'
  [<!ENTITY mathml 'http://www.w3.org/1998/Math/MathML'>]>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head><title>math</title>
<!-- MathML created with MathCast Equation Editor version 0.88 -->
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"/>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub>
      <mi>i</mi>
      <mi>p</mi>
    </msub>
    <mo>&#x2248;</mo>
    <munderover>
      <mo>&#x222B;</mo>
      <mrow>
        <msub>
          <mi>&#x03BB;</mi>
          <mrow>
            <mi>l</mi>
            <mi>o</mi>
            <mi>w</mi>
          </mrow>
        </msub>
      </mrow>
      <mrow>
        <msub>
          <mi>&#x03BB;</mi>
          <mrow>
            <mi>h</mi>
            <mi>i</mi>
            <mi>g</mi>
            <mi>h</mi>
          </mrow>
        </msub>
      </mrow>
    </munderover>
    <mrow>
      <msub>
        <mi>P</mi>
        <mrow>
          <mi>O</mi>
          <mi>p</mi>
          <mi>t</mi>
        </mrow>
      </msub>
      <mfenced>
        <mrow>
          <mi>&#x03BB;</mi>
        </mrow>
      </mfenced>
    </mrow>
    <mo>&#x00B7;</mo>
    <mi>&#x03C1;</mi>
    <mo>&#x00B7;</mo>
    <mo>[</mo>
    <mi>&#x03B4;</mi>
    <mfenced>
      <mrow>
        <mi>&#x03BB;</mi>
        <mo>&#x2212;</mo>
        <msub>
          <mi>&#x03BB;</mi>
          <mrow>
            <mi>F</mi>
            <mi>B</mi>
            <mi>G</mi>
          </mrow>
        </msub>
      </mrow>
    </mfenced>
    <mo>&#x00B7;</mo>
    <msub>
      <mi>&#x03B7;</mi>
      <mrow>
        <mi>F</mi>
        <mi>B</mi>
        <mi>G</mi>
      </mrow>
    </msub>
    <mo>+</mo>
    <mi>&#x0393;</mi>
    <mfenced>
      <mrow>
        <mi>&#x03BB;</mi>
      </mrow>
    </mfenced>
    <mo>]</mo>
    <mi>d</mi>
    <mi>&#x03BB;</mi>
    <mo>=</mo>
  </mrow>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mo>=</mo>
    <mi>&#x03C1;</mi>
    <mo>&#x2062;</mo>
    <msub>
      <mi>P</mi>
      <mrow>
        <mi>O</mi>
        <mi>p</mi>
        <mi>t</mi>
      </mrow>
    </msub>
    <mfenced>
      <mrow>
        <msub>
          <mi>&#x03BB;</mi>
          <mrow>
            <mi>F</mi>
            <mi>B</mi>
            <mi>G</mi>
          </mrow>
        </msub>
      </mrow>
    </mfenced>
    <mo>&#x2062;</mo>
    <msub>
      <mi>&#x03B7;</mi>
      <mrow>
        <mi>F</mi>
        <mi>B</mi>
        <mi>G</mi>
      </mrow>
    </msub>
  </mrow>
</math>
</body>
</html>

Re: embedding MathML

Posted on: 20/01/08 10:50am
By: Anonymous

Unfortunately, as with AJAX technology, one must jump through a few hoops to make MathML work in a cross-browser way (at least for IE and FF). See our pages starting here for some hints on how to do this:

http://www.dessci.com/en/products/mathplayer/author/default.htm

Paul Topping
Design Science, Inc.
Makers of MathPlayer, etc.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=80798