Hi,
I've been working on trying to align my MathML equations to the baseline in Prince. After digging through the W3C spec on MathML and just experimenting around, I still can't figure it out.
The same line of code on Firefox and IE (using MathPlayer) is automatically aligned to the baseline by the browser.
I've tried the following CSS but no luck.
Although I have noticed that "vertical-align: middle;" works, that causes problems with x-bar and p-hat being below the baseline. I would appreciate any feedback on what I can do to get this to align to the baseline, thanks!
I've been working on trying to align my MathML equations to the baseline in Prince. After digging through the W3C spec on MathML and just experimenting around, I still can't figure it out.
The same line of code on Firefox and IE (using MathPlayer) is automatically aligned to the baseline by the browser.
<p>Know what each of these symbols represent: μ,
<m:math>
<m:semantics>
<m:mover accent="true">
<m:mi>x</m:mi>
<m:mo>¯</m:mo>
</m:mover>
<m:annotation encoding="MathType-MTEF"> </m:annotation>
</m:semantics>
</m:math>
,
<m:math>
<m:semantics>
<m:mover accent="true">
<m:mi>p</m:mi>
<m:mo>^</m:mo>
</m:mover>
<m:annotation encoding="MathType-MTEF"> </m:annotation>
</m:semantics>
</m:math>
,
<m:math>
<m:semantics>
<m:mrow>
<m:mfrac>
<m:mi>σ</m:mi>
<m:mrow>
<m:msqrt>
<m:mi>n</m:mi>
</m:msqrt>
</m:mrow>
</m:mfrac>
</m:mrow>
<m:annotation encoding="MathType-MTEF"> </m:annotation>
</m:semantics>
</m:math>
,
<m:math>
<m:semantics>
<m:mrow>
<m:msqrt>
<m:mrow>
<m:mfrac>
<m:mrow>
<m:msubsup>
<m:mi>s</m:mi>
<m:mn>1</m:mn>
<m:mn>1</m:mn>
</m:msubsup>
</m:mrow>
<m:mrow>
<m:msub>
<m:mi>n</m:mi>
<m:mn>1</m:mn>
</m:msub>
</m:mrow>
</m:mfrac>
<m:mo>+</m:mo>
<m:mfrac>
<m:mrow>
<m:msubsup>
<m:mi>s</m:mi>
<m:mn>2</m:mn>
<m:mn>2</m:mn>
</m:msubsup>
</m:mrow>
<m:mrow>
<m:msub>
<m:mi>n</m:mi>
<m:mn>2</m:mn>
</m:msub>
</m:mrow>
</m:mfrac>
</m:mrow>
</m:msqrt>
</m:mrow>
<m:annotation encoding="MathType-MTEF"> </m:annotation>
</m:semantics>
</m:math>
</p>
I've tried the following CSS but no luck.
math{
vertical-align: baseline;
}
Although I have noticed that "vertical-align: middle;" works, that causes problems with x-bar and p-hat being below the baseline. I would appreciate any feedback on what I can do to get this to align to the baseline, thanks!