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

Use physics package would break brackets #2831

Closed
abnerlee opened this issue Feb 6, 2022 · 3 comments
Closed

Use physics package would break brackets #2831

abnerlee opened this issue Feb 6, 2022 · 3 comments
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.2
Milestone

Comments

@abnerlee
Copy link

abnerlee commented Feb 6, 2022

See demo in https://codepen.io/abnerlee/pen/BamQZrp

The size of () seems incorrect, but if you remove physics package, () looks correctly paried.

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team v3 labels Feb 6, 2022
@dpvc dpvc self-assigned this Feb 6, 2022
@dpvc
Copy link
Member

dpvc commented Feb 6, 2022

Thanks for the report. The code that determines the argument is matching the wrong close parenthesis.

One work-around would be to use additional braces to "hide" the inner parentheses. For example

\exp({(\frac{a}{a}a)}{a})

would be a way to get the desired result from your codepen expression.

dpvc added a commit to mathjax/MathJax-src that referenced this issue Feb 7, 2022
@dpvc dpvc added this to the 3.2.1 milestone Feb 7, 2022
dpvc added a commit to mathjax/MathJax-src that referenced this issue Mar 10, 2022
Have physics package match nested parentheses, fix spacing issues (mathjax/MathJax#2760, mathjax/MathJax#2831)
@dpvc dpvc added Merged Merged into develop branch and removed Ready for Review labels Mar 10, 2022
@dpvc dpvc removed their assignment Jun 1, 2022
@dpvc dpvc added Fixed v3.2 and removed Merged Merged into develop branch labels Jun 1, 2022
@dpvc dpvc closed this as completed Jun 1, 2022
@abnerlee
Copy link
Author

abnerlee commented Sep 5, 2022

@dpvc Hi,

If you input $$\mathtt{9(A)3(AB)CCD}$$ on https://codepen.io/abnerlee/pen/BamQZrp you can see the brackets is still in different size.

It renders fine if physics package is not used.

@dpvc
Copy link
Member

dpvc commented Sep 5, 2022

Please don't add a new issue to a closed tracker, as that makes it harder to manage the issue and its history. I will start a new issue for this.

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