Welcome to Geeklog, Anonymous Sunday, December 01 2024 @ 01:15 am EST
Geeklog Forums
embedding MathML
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?
<!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>≈</mo>
<munderover>
<mo>∫</mo>
<mrow>
<msub>
<mi>λ</mi>
<mrow>
<mi>l</mi>
<mi>o</mi>
<mi>w</mi>
</mrow>
</msub>
</mrow>
<mrow>
<msub>
<mi>λ</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>λ</mi>
</mrow>
</mfenced>
</mrow>
<mo>·</mo>
<mi>ρ</mi>
<mo>·</mo>
<mo>[δ
λ
−
λ
F
B
G
·
η
F
B
G
+
Γ
λ
]</mo>
<mi>d</mi>
<mi>λ</mi>
<mo>=</mo>
</mrow>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mo>=</mo>
<mi>ρ</mi>
<mo>⁢</mo>
<msub>
<mi>P</mi>
<mrow>
<mi>O</mi>
<mi>p</mi>
<mi>t</mi>
</mrow>
</msub>
<mfenced>
<mrow>
<msub>
<mi>λ</mi>
<mrow>
<mi>F</mi>
<mi>B</mi>
<mi>G</mi>
</mrow>
</msub>
</mrow>
</mfenced>
<mo>⁢</mo>
<msub>
<mi>η</mi>
<mrow>
<mi>F</mi>
<mi>B</mi>
<mi>G</mi>
</mrow>
</msub>
</mrow>
</math>
</body>
</html>
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>≈</mo>
<munderover>
<mo>∫</mo>
<mrow>
<msub>
<mi>λ</mi>
<mrow>
<mi>l</mi>
<mi>o</mi>
<mi>w</mi>
</mrow>
</msub>
</mrow>
<mrow>
<msub>
<mi>λ</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>λ</mi>
</mrow>
</mfenced>
</mrow>
<mo>·</mo>
<mi>ρ</mi>
<mo>·</mo>
<mo>[
<mi>d</mi>
<mi>λ</mi>
<mo>=</mo>
</mrow>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mo>=</mo>
<mi>ρ</mi>
<mo>⁢</mo>
<msub>
<mi>P</mi>
<mrow>
<mi>O</mi>
<mi>p</mi>
<mi>t</mi>
</mrow>
</msub>
<mfenced>
<mrow>
<msub>
<mi>λ</mi>
<mrow>
<mi>F</mi>
<mi>B</mi>
<mi>G</mi>
</mrow>
</msub>
</mrow>
</mfenced>
<mo>⁢</mo>
<msub>
<mi>η</mi>
<mrow>
<mi>F</mi>
<mi>B</mi>
<mi>G</mi>
</mrow>
</msub>
</mrow>
</math>
</body>
</html>
11
12
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.
http://www.dessci.com/en/products/mathplayer/author/default.htm
Paul Topping
Design Science, Inc.
Makers of MathPlayer, etc.
10
11
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