Sigma bounds not aligning properly

20 views
Skip to first unread message

Erik van Brakel

unread,
Jan 23, 2011, 1:42:52 PM1/23/11
to MathJax Users
I've installed MathJS into my Subtext blog, and it works decently.
WebFonts are being used when possible, and almost everything I need is
being displayed properly.
Except for... summations. The bounds are displayed next to the sigma,
instead of under and above it. Example can be seen here:
http://blog.smoothfriction.nl/archive/2011/01/23/powershell-series-project-euler.aspx

I'm almost certain this is a CSS issue, but I can't seem to figure out
how exactly those things are getting offset.

Anyone?

Davide P. Cervone

unread,
Jan 23, 2011, 1:50:43 PM1/23/11
to mathja...@googlegroups.com
There is a difference between "in-line" mathematics and "display"
mathematics, in particular in how vertical space is used. You specify
which you want my using $...$ for in-line math and $$...$$ for display
math. Display math is shown as a centered equation, with limits above
and below operators like \sum. In-line math tries hard not to make
equations so large that they change the interline spacing, which is
why the limits are shown next to the \sum. If you use double dollars
instead of single dollars, it should work out better for you.

Also, you should use \sin and \cos rather than sin and cos without the
slash (so that they are rendered in the proper font and with the right
spacing).

Davide

Erik van Brakel

unread,
Jan 23, 2011, 2:00:25 PM1/23/11
to MathJax Users
Thanks! Fixed it and learned something, not bad for a sunday evening!

On 23 jan, 19:50, "Davide P. Cervone" <d...@union.edu> wrote:
> There is a difference between "in-line" mathematics and "display"  
> mathematics, in particular in how vertical space is used.  You specify  
> which you want my using $...$ for in-line math and $$...$$ for display  
> math.  Display math is shown as a centered equation, with limits above  
> and below operators like \sum.  In-line math tries hard not to make  
> equations so large that they change the interline spacing, which is  
> why the limits are shown next to the \sum.  If you use double dollars  
> instead of single dollars, it should work out better for you.
>
> Also, you should use \sin and \cos rather than sin and cos without the  
> slash (so that they are rendered in the proper font and with the right  
> spacing).
>
> Davide
>
> On Jan 23, 2011, at 1:42 PM, Erik van Brakel wrote:
>
> > I've installed MathJS into my Subtext blog, and it works decently.
> > WebFonts are being used when possible, and almost everything I need is
> > being displayed properly.
> > Except for... summations. The bounds are displayed next to the sigma,
> > instead of under and above it. Example can be seen here:
> >http://blog.smoothfriction.nl/archive/2011/01/23/powershell-series-pr...
Reply all
Reply to author
Forward
0 new messages