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

\sqrt with index of radical exceeds two digits display incorrect on v3.2.2 #3238

Open
azurechen opened this issue Jun 2, 2024 · 2 comments
Milestone

Comments

@azurechen
Copy link

Issue Summary

When using the sqrt syntax but the index of radical exceeds two digits, the offset of expression is incorrect.

For example

aa\sqrt[33333]{a^{15}} + \sqrt[33333]{a^{15}}aa

Steps to Reproduce:

  1. Go to the demo page provided by MathJax-demos-web
  2. input aa\sqrt[33333]{a^{15}} + \sqrt[33333]{a^{15}}aa and click Render TeX
image

The correct result should be displayed like the following image (the output is HTML, which means the issue is only on SVG)

image

After investigation, this is a bug caused by the following line. Seems like adding an extra dx value accidentally.

mathjax/MathJax-src@5f6cc8a#diff-21adda599dc0790184ec7dfa4cb615b263b9a91917f3386bc62d8730460548acR356
(Downgrading to v3.2.0 can fix this issue because the pr was not merged yet)

Remove this line, and the expression is displayed correctly.

I also create a PR to fix the issue
mathjax/MathJax-src#1098

Technical details:

  • MathJax Version: 3.2.2
  • Client OS: Mac OS X 114.4.1
  • Browser: Chrome 125.0.6422.113
@azurechen azurechen changed the title \sqrt with index of radical exceeds two digits display incorrect on v3.2.2 \sqrt with index of radical exceeds two digits display incorrect on v3.2.2 Jun 2, 2024
@azurechen
Copy link
Author

azurechen commented Jun 2, 2024

link to PR mathjax/MathJax-src#1098

@dpvc
Copy link
Member

dpvc commented Jun 3, 2024

This is a duplicate of #2923, #2984, and #3117, and is resolved in v4 (now in beta release)

@dpvc dpvc added the Duplicate label Jun 3, 2024
@dpvc dpvc added this to the v4.0 milestone Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants