4
$\begingroup$

In MathJax, it seems that nested fractions have minor problems with alignment. Specifically, they appear further to the right than they should.

It would be interesting to see if this also occurs when a fraction occurs in a sub/superscript, but I couldn't think of a way of actually checking in this scenario whether the gap was larger than it's "supposed" to be.

Consider the code

$$\frac{1}{\frac{1}{x}} \quad \frac{\frac{1}{x}}{1}$$

Here it is as rendered by the site (this is not a screenshot):

$$\frac{1}{\frac{1}{x}} \quad \frac{\frac{1}{x}}{1}$$

Here it is as I see it in Chrome 28.0.1500.95 m (zoomed in 250%):

                                                                enter image description here

Here it is as I see it in Internet Explorer 10.0.9200.16635 (zoomed in 250%):

                                                                enter image description here

Here it is as I see it when compiling it in my LaTeX editor (zoomed in 250%):

                                                                 enter image description here

I'm using Windows 7 Home Premium 64-bit.

$\endgroup$
  • $\begingroup$ You can also use: $$\Huge\frac1{\frac1x}$$ $\endgroup$ – Asaf Karagila Aug 18 '13 at 16:53
  • $\begingroup$ Also, I see the fraction slightly misaligned too; Firefox 23.0.1 on Linux 64bit. $\endgroup$ – Asaf Karagila Aug 18 '13 at 16:54
  • $\begingroup$ @Asaf: The reason why I use zoom in bug reports is because (for all we know) the \Huge command interacts with the spacing in a way such that \Huge ... is not an accurate representation of ... zoomed up the corresponding amount. In fact, if I were really dedicated to reproducing pixel-for-pixel what I see on my screen, what I would need to do is take a screenshot while using the Windows Magnifier tool... $\endgroup$ – Zev Chonoles Aug 18 '13 at 16:57
  • $\begingroup$ For what it's worth, the misalign between my comment and your post is the same. $\endgroup$ – Asaf Karagila Aug 18 '13 at 16:59
6
$\begingroup$

Fractions have a small amount of space added on both sides of them, and it looks like the outer fraction isn't taking that into account when it measures the size of the inner fraction for centering.

I've opened an issue tracker for this on the MathJax site.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .