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

Display of fraction for root index is poor #2764

Closed
NSoiffer opened this issue Sep 4, 2021 · 1 comment
Closed

Display of fraction for root index is poor #2764

NSoiffer opened this issue Sep 4, 2021 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.2
Milestone

Comments

@NSoiffer
Copy link

NSoiffer commented Sep 4, 2021

Issue Summary

The positioning of a fraction when used as the index to \sqrt is pretty bad

Steps to Reproduce:

TeX Input: \sqrt[\frac{1}{2}]{1}

Display:
Normal zoom:
image

200%:
image

Other zoom levels also result in poor rendering.

This is likely a result of TeX's rules for positioning the index being suboptimal. I suspect some additions to those rules are needed to avoid having the index crash into the radical.

Technical details:

I viewed this on https://mathjax.github.io/MathJax-demos-web/speech-generator/convert-with-speech.html
Windows machine
The images are from Chrome; theylook similar on Firefox.

@dpvc
Copy link
Member

dpvc commented Sep 15, 2021

It turns out that this is actually due to incorrectly positioning the surd and bar rather than the position of the 1/2 itself. (Notice that the bottom of the surd isn't low enough.) The CHTML output was correct:

root

though the position of the fraction isn't great due to the spacing around the fraction from it having TeX class INNER.

I have created a pull request to resolve the issue for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.2
Projects
None yet
Development

No branches or pull requests

2 participants