W3C home > Mailing lists > Public > www-math@w3.org > August 2012

Re: [mathjax-users] mmultiscripts: alignment of scripts preceding a character

From: Frédéric WANG <fred.wang@free.fr>
Date: Mon, 20 Aug 2012 19:04:06 +0200
Message-ID: <50326E06.6050804@free.fr>
To: mathjax-users@googlegroups.com, "www-math@w3.org" <www-math@w3.org>
Firefox vertically aligns sup/sub scripts with respect to their centers, 
but there is no comment in the source explaining this choice. Scripts of 
msubsup are aligned left, though.

On 20/08/2012 16:06, David Carlisle wrote:
> On 20 August 2012 14:50, Alexander Krutik<krutik.alexander@gmail.com>  wrote:
>> Hello MathJax Users,
>> I have a question regarding alignment of scripts in mmultiscripts. In the
>> code below scripts preceding a character are left justified.
>> <math>
>> <mrow>
>>    <mmultiscripts>
>>      <mo>  O</mo>
>>      <mprescripts/>
>>      <mn>  18</mn>
>>        <mn>  1</mn>
>>    </mmultiscripts>
>> </mrow>
>> </math>
>> First of all, Is it an issue in MathJax? I looked into MathML specification
>> (http://www.w3.org/TR/MathML3/chapter3.html#presm.mmultiscripts), but didn't
>> find a clear answer there. MathType right justifies such scripts. Can
>> someone suggest an elegant workaround to right justify scripts preceding a
>> character? I've tried to play with direction of text (LTR/RTL), but this
>> didn't help. Of course one can add spaces, but this does not seem to be an
>> elegant solution.
>> Thanks,
>> Alex
> That's an interesting question. Perhaps you should raise it on
> www-math as a potential bug report on the spec in that it ought to
> make it clear. When I've implemented mapping mprescripts to TeX it has
> always ended up looking like \specialstrut_a^b{base} where
> \specialstrut is an invisible rule the height and depth of base, so
> the prescripts are always left aligned. As you note the spec just says
> "vertically-aligned pairs" which could be clearer.....

Frédéric Wang
Received on Monday, 20 August 2012 17:02:46 UTC

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