- From: Frédéric WANG <fred.wang@free.fr>
- Date: Mon, 20 Aug 2012 19:04:06 +0200
- 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 maths-informatique-jeux.com/blog/frederic
Received on Monday, 20 August 2012 17:02:46 UTC