Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uneven subscripts #804

Closed
pkra opened this issue Apr 29, 2014 · 6 comments

Comments

Projects
None yet
2 participants
@pkra
Copy link
Member

commented Apr 29, 2014

I saw this on TeX.SE -- I was not sure if that's expected behavior or not.

$|x_n y_n - xy|<\epsilon$ in TeX has slightly uneven subscripts (as opposed to TeX).

@pkra

This comment has been minimized.

Copy link
Member Author

commented May 7, 2014

Similarly the following example has the second underbrace lower than the first.

        <math display="block">
          <mrow>
            <mi>c</mi>
            <mo>=</mo>
            <mover>
              <mover>
                <mrow>
                  <munder>
                    <munder>
                      <mrow>
                        <mi>a</mi>
                      </mrow>
                      <mo>&UnderBrace;</mo>
                    </munder>
                    <mtext>real</mtext>
                  </munder>
                  <mo>+</mo>
                  <munder>
                    <munder>
                      <mrow>
                        <mi>b</mi>
                        <mo>&InvisibleTimes;</mo>
                        <mi>&ImaginaryI;</mi>
                      </mrow>
                      <mo>&UnderBrace;</mo>
                    </munder>
                    <mtext>imaginary</mtext>
                  </munder>
                 </mrow>
                <mo>&OverBrace;</mo>
              </mover>
              <mtext>complex number</mtext>
            </mover>
          </mrow>
        </math>

@dpvc dpvc added the Accepted label May 12, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented May 12, 2014

The problem in the second example is because the &ImaginaryI; is not in the TeX fonts, and so it uses a unicode reference for it and doesn't know the bounding box for it, so uses the full height and depth. That makes MathJax think that the bi is lower than the a, and so the brace is lower. If you uses STIX fonts, you should see them both being the same depth.

@pkra

This comment has been minimized.

Copy link
Member Author

commented May 12, 2014

Ah, thanks. So that leaves just the OP.

@dpvc dpvc added the Investigate label Aug 17, 2014

@dpvc dpvc added this to the Next Release milestone Aug 19, 2014

dpvc pushed a commit to dpvc/MathJax that referenced this issue Sep 14, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented Sep 14, 2014

It turns out that the HTML-CSS subscript positioning wasn't taking one of the scaling values into account properly. I have fixed this in the issue804 branch of my fork of MathJax includes the fix. Note that this only affected the HTML-CSS output (SVG did it correctly).

dpvc pushed a commit to dpvc/MathJax that referenced this issue Nov 2, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented Nov 13, 2014

==> Merged (Nov. 2)

@dpvc dpvc added Merged and removed Ready for Review labels Nov 13, 2014

@dpvc dpvc closed this Nov 13, 2014

dpvc pushed a commit to mathjax/MathJax-test that referenced this issue Jan 17, 2015

@dpvc dpvc added Test Available and removed Test Needed labels Jan 17, 2015

@dpvc

This comment has been minimized.

Copy link
Member

commented Jan 17, 2015

==> In Testsuite

MathMLToDisplay/Presentation/ScriptsAndLimits/issue804.html

@dpvc dpvc added Fixed v2.5 and removed Merged labels Jan 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.