Problem rendering content within <mover> tags

98 views
Skip to first unread message

Priya and Rishi

unread,
May 10, 2012, 11:49:32 AM5/10/12
to MathJax Users
Hi all,

The following MathML equation is not rendering correctly using MathJax
version 2.0. In Internet Explorer versions 8 and 9, I get a "Math
processing error". In Firefox version 9 and Chrome, there is no Math
processing error however the equation does not render correctly.

However if I remove the <mover> tags from within the MathML below, I
don't get a Math processing error in IE.

The MathML is as follows
<math xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" display="block"
overflow="scroll"><mtable align="axis" alignmentscope="true"
columnalign="left" columnlines="none" columnspacing="0.8em"
columnwidth="auto" displaystyle="false" equalcolumns="false"
equalrows="false" frame="none" framespacing="0.4em 0.5ex"
minlabelspacing="0.8em" rowalign="baseline" rowlines="none"
rowspacing="1.0ex" side="right" width="auto"><mtr columnalign="center"
rowalign="baseline"><mtd columnalign="center" columnspan="1"
rowalign="baseline" rowspan="1"><msub><mover accent="true"><mi>Q</
mi><mo>a</mo></mover><mrow><mtext>cv</mtext></mrow></msub><mo>a</
mo><msub><mover accent="true"><mi>W</mi><mo>a</mo></
mover><mrow><mtext>cv</mtext></mrow></msub><mo>=</mo><mstyle
background="transparent" displaystyle="true" linethickness="1"
mediummathspace="0.222222em" scriptminsize="8pt"
scriptsizemultiplier="0.71" thickmathspace="0.277778em"
thinmathspace="0.166667em" verythickmathspace="0.333333em"
verythinmathspace="0.111111em" veryverythickmathspace="0.388889em"
veryverythinmathspace="0.0555556em"><mo>a</mo><mrow><msub><mover
accnt="true"><mi>m</mi><mo>a</mo></mover><mrow><mtext>out</mtext></
mrow></msub><mrow><mo>(</mo><mrow><msub><mi>h</mi><mrow><mtext>out</
mtext></mrow></msub><mo>+</mo><mfrac denomalign="center"
linethickness="1" numalign="center"><mrow><msubsup><mi>V</
mi><mrow><mtext>out</mtext></mrow><mtext>2</mtext></msubsup></
mrow><mn>2</mn></mfrac><mo>+</mo><mi>g</mi><msub><mi>z</
mi><mrow><mtext>out</mtext></mrow></msub></mrow><mo>)</mo></mrow></
mrow></mstyle><mo>a</mo></mtd></mtr>
</mtable></math>

The reference to the MathJax javascript I am using is as follows
<script type="text/javascript" src="/js/MathJax/MathJax.js?config=TeX-
AMS-MML_HTMLorMML"> </script>

I have checked the above MathML using http://www.mathmlcentral.com/Tools/FromMathML.jsp
and the equation seems to be generated correctly in that tool.

I would be grateful if someone could advise me about this.

Thanks,
Priya

Frédéric WANG

unread,
May 10, 2012, 12:07:22 PM5/10/12
to mathja...@googlegroups.com
Hi,

Did you try to verify your page with a validator (for example
http://validator.w3.org/)?
It seems that there is a typo: "accnt" should be "accent".
--
Fr�d�ric Wang
maths-informatique-jeux.com/blog/frederic

Priya and Rishi

unread,
May 10, 2012, 12:28:25 PM5/10/12
to MathJax Users
Hi Frédéric,

Thanks for the response. I tried correcting the attribute to "accent"
but I still get the same Math processing error.

The corrected MathML is

<math xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" display="block"
overflow="scroll"><mtable align="axis" alignmentscope="true"
columnalign="left" columnlines="none" columnspacing="0.8em"
columnwidth="auto" displaystyle="false" equalcolumns="false"
equalrows="false" frame="none" framespacing="0.4em 0.5ex"
minlabelspacing="0.8em" rowalign="baseline" rowlines="none"
rowspacing="1.0ex" side="right" width="auto"><mtr columnalign="center"
rowalign="baseline"><mtd columnalign="center" columnspan="1"
rowalign="baseline" rowspan="1"><msub><mover accent="true"><mi>Q</
mi><mo>a</mo></mover><mrow><mtext>cv</mtext></mrow></msub><mo>a</
mo><msub><mover accent="true"><mi>W</mi><mo>a</mo></
mover><mrow><mtext>cv</mtext></mrow></msub><mo>=</mo><mstyle
background="transparent" displaystyle="true" linethickness="1"
mediummathspace="0.222222em" scriptminsize="8pt"
scriptsizemultiplier="0.71" thickmathspace="0.277778em"
thinmathspace="0.166667em" verythickmathspace="0.333333em"
verythinmathspace="0.111111em" veryverythickmathspace="0.388889em"
veryverythinmathspace="0.0555556em"><mo>a</mo><mrow><msub><mover
accent="true"><mi>m</mi><mo>a</mo></mover><mrow><mtext>out</mtext></
mrow></msub><mrow><mo>(</mo><mrow><msub><mi>h</mi><mrow><mtext>out</
mtext></mrow></msub><mo>+</mo><mfrac denomalign="center"
linethickness="1" numalign="center"><mrow><msubsup><mi>V</
mi><mrow><mtext>out</mtext></mrow><mtext>2</mtext></msubsup></
mrow><mn>2</mn></mfrac><mo>+</mo><mi>g</mi><msub><mi>z</
mi><mrow><mtext>out</mtext></mrow></msub></mrow><mo>)</mo></mrow></
mrow></mstyle><mo>a</mo></mtd></mtr>
</mtable></math>

Regards,
Priya

On May 10, 5:07 pm, Frédéric WANG <fred.w...@free.fr> wrote:
> Hi,
>
> Did you try to verify your page with a validator (for examplehttp://validator.w3.org/)?
> > I have checked the above MathML usinghttp://www.mathmlcentral.com/Tools/FromMathML.jsp
> > and the equation seems to be generated correctly in that tool.
>
> > I would be grateful if someone could advise me about this.
>
> > Thanks,
> > Priya
>
> --
> Fr�d�ric Wang
> maths-informatique-jeux.com/blog/frederic

Frédéric WANG

unread,
May 10, 2012, 12:47:48 PM5/10/12
to mathja...@googlegroups.com
I don't know if that happened when you copy / paste the code in your
mail, but you should not break the closing element on two lines

"</
mi>"

should be

"</mi>"

Again, please try
http://validator.w3.org/#validate_by_upload

On 10/05/2012 18:28, Priya and Rishi wrote:
> Hi Fr�d�ric,

Davide P. Cervone

unread,
May 10, 2012, 12:58:24 PM5/10/12
to mathja...@googlegroups.com
Both the incorrect rendering in Firefox and Chrome and the Math
Processing Error in IE (when not in IE9 standards mode) are due to a
bug in MathJax and seems to be triggered by the align="axis" setting.
I will look into it further, but for now, if you can remove that
attribute, it should work for you.

Davide

Priya and Rishi

unread,
May 11, 2012, 2:13:56 AM5/11/12
to MathJax Users
Hi Davide,

Removing the align="axis" attribute fixed the problem in all three
browsers. Thanks a lot for the help!

Regards,
Priya
> > I have checked the above MathML usinghttp://www.mathmlcentral.com/Tools/FromMathML.jsp

Priya and Rishi

unread,
May 18, 2012, 11:13:25 AM5/18/12
to MathJax Users
Hi Davide,

Could you please let me know whether the align="axis" attribute should
be removed from all the mml elements or only from the mtable element?
Also I assume that only "align" attributes that have a value of "axis"
should be removed and not the "align" attributes with other values.
Could you please confirm?

Thanks for your help.

Priya

On May 10, 5:58 pm, "Davide P. Cervone" <d...@union.edu> wrote:
> > I have checked the above MathML usinghttp://www.mathmlcentral.com/Tools/FromMathML.jsp

Davide P. Cervone

unread,
May 18, 2012, 5:38:29 PM5/18/12
to mathja...@googlegroups.com
I think that the issue is the following (though I haven't confirmed
it): the element inside the table are incorrectly inheriting the
align attribute from the table (as though it were an mstyle), and so
the table's align attribute is being applied to the mover elements
inside the table. It doesn't really matter what value the align has,
it is the presence of the align that is the problem. I think you will
either have to remove the align entirely, or set it to "center" (which
is what the mover elements need), or add explicit align="center" to
the mover elements. I think any of those would do the trick.

Davide
Reply all
Reply to author
Forward
0 new messages