Welcome to Geeklog, Anonymous Sunday, December 01 2024 @ 01:15 am EST

Geeklog Forums

embedding MathML


Status: offline

Benta

Forum User
Regular Poster
Registered: 03/11/05
Posts: 80
curious
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?

Text 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'
  []>
<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>[ δ λ λ F B G · η F B G + Γ λ ]</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>
 Quote

pault@dessci.com

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.
 Quote

All times are EST. The time is now 01:15 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content