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

Re: mrow - child vertical align

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 18 Feb 2013 16:25:58 +0000
Message-ID: <51225616.9070303@nag.co.uk>
To: Ionel Alexandru <ionel.alexandru@gmail.com>
Cc: www-math@w3.org
On 18/02/2013 15:49, Ionel Alexandru wrote:
> Hi,
> In a mrow tag I think we need to have a vertical align attribute: top,
> bottom, center or baseline - like rowalign.
> If we have children of type mtext with different mathsize I think is
> better to be rendered using baseline (also center could be a good choice ).
> If we have a list of fractions in mrow is better to be centered.
> ...
> What do you think ?
> Do I miss something ?

I believe the intended default alignment should work OK for both text 
and fractions.
The normal rendering should be such that the fraction lines are centred 
on the axis (that is a fixed distance up from the baseline)
This means that a row of fractions would have their bars aligned even if 
they had different size numerator. Centering them would typically make 
the bars move up or down. depending.

For special circumstances you can of course use mpadded to offset one 
term, or use a one row table with its alignment options. We already get 
feedback from css-based browser implementations that mrow/mstyle have 
too much style attribute possibilities so it isn't clear that adding 
more would be universally popular:-)

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>
<math xmlns="http://www.w3.org/1998/Math/MathML">

The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

(image/png attachment: mrow-ff.png)

(image/png attachment: mrow-mp.png)

Received on Monday, 18 February 2013 16:26:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:45 UTC