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

Re: mrow - child vertical align

From: Ionel Alexandru <ionel.alexandru@gmail.com>
Date: Mon, 18 Feb 2013 15:43:45 -0500
Message-ID: <CAH_je0c1622FGqs5gwweWdxNiAeXeSS6g4u2AAemmk-+dWOhSg@mail.gmail.com>
To: William F Hammond <hammond@csc.albany.edu>
Cc: David Carlisle <davidc@nag.co.uk>, www-math@w3.org
Hi,

thank you,
But what would be the rendering if I have (default mathsize=25).

<mrow>
<mtext>An example:&nbsp;</mtext>
<mi mathsize="50">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>

How would be displayed "aaa" ? Centered ?
It seems better to be aligned to baseline both texts like: An example: aaa

thank you for your time
Ionel Alexandru
www.fmath.info


On Mon, Feb 18, 2013 at 2:32 PM, William F Hammond
<hammond@csc.albany.edu>wrote:

> 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 20:44:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 18 February 2013 20:44:15 GMT