W3C home > Mailing lists > Public > www-math@w3.org > February 2013

Re: mrow - child vertical align

From: William F Hammond <hammond@csc.albany.edu>
Date: Mon, 18 Feb 2013 14:32:40 -0500
To: David Carlisle <davidc@nag.co.uk>
Cc: Ionel Alexandru <ionel.alexandru@gmail.com>, <www-math@w3.org>
Message-ID: <i7bobho1t3.fsf@hilbert.math.albany.edu>
David Carlisle writes in part:

> I attach the rendering of firefox and mathplayer with the following
> example, which shows fractions of different sizes aligning such that
> their bars match that of + (which is also what TeX would do).
>
> ...
>
> <!DOCTYPE html>
> <html>
> <title>test</title>
> <body>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
> <mrow>
> <mtext>aaa</mtext>
> <mo>+</mo>
> <mfrac><mn>1</mn><mn>2</mn></mfrac>
> <mtext>aaa</mtext>
> <mo>+</mo>
> <mfrac><msup><mi>A</mi><mi>A</mi></msup><mi>b</mi></mfrac>
> </mrow>
> </math>
> </body>
> </html>

Of course, the semantics are not defined, but, relative to default
semantics, you've used mtext where I think it would have been better
to use mi (without, for correct user agents, changing the rendered
appearance).  Thus, the mrow might be:

<mrow>
<mtext>An example:&nbsp;</mtext>
<mi>aaa</mi>
<mo>+</mo>
<mfrac><mn>1</mn><mn>2</mn></mfrac>
<mi>aaa</mi>
<mo>+</mo>
<mfrac><msup><mi>A</mi><mi>A</mi></msup><mi>b</mi></mfrac>
</mrow>


                                    -- Bill
Received on Monday, 18 February 2013 19:33:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 18 February 2013 19:33:12 GMT