by asmodai » Wed Jul 22, 2009 10:21 UTC
Yes, that renders correctly. But that might also be because of the implicit mfrac that it contains.
I had written a MathML equation before and reworked it with FireMath to see if my own thoughts were quite on par.
This is what FireMath gave me:
[code]
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mi>I</mi>
<mi>p</mi>
</msub>
<mo>=</mo>
<msub>
<mi>k</mi>
<mi>a</mi>
</msub>
<msub>
<mi>i</mi>
<mi>a</mi>
</msub>
<mo>+</mo>
<munder>
<mo>∑</mo>
<mtext>lights</mtext>
</munder>
<mfenced open="(" close=")" separators=",">
<mrow>
<msub>
<mi>k</mi>
<mi>d</mi>
</msub>
<mfenced open="(" close=")" separators=",">
<mrow>
<mi>L</mi>
<mo>·</mo>
<mi>N</mi>
</mrow>
</mfenced>
<msub>
<mi>i</mi>
<mi>d</mi>
</msub>
<mo>+</mo>
<msub>
<mi>k</mi>
<mi>s</mi>
</msub>
<msup>
<mrow>
<mfenced open="(" close=")" separators=",">
<mrow>
<mi>R</mi>
<mo>·</mo>
<mi>V</mi>
</mrow>
</mfenced>
</mrow>
<mi>α</mi>
</msup>
<msub>
<mi>i</mi>
<mi>s</mi>
</msub>
</mrow>
</mfenced>
</mrow>
</math>
[/code]
Just as a test I did create a new one. I added a summation symbol, selected it, then used the upper/lower button and on the bottom pink dot I added 'lights' as text. Within FireMath this looks as a Sigma with 'lights' directly underneath it. However, if I use this in a HTML page it will put the 'lights' text directly to the right of it.
Ah, found it. If the <math> element does not have display="block" in it, the rendering fails in this aspect. I stripped off the display="block" part for my use since it does not fit the way I had the CSS layout for this. What I wonder about is if and why display="block" ought to matter. My only guess would be if inline would force the entire equation to try and fit a line's X-height.