MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Physics doesn't respect font choice for closing parentheses

Open dpvc opened this issue 3 years ago • 2 comments

@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.

Originally posted by @abnerlee in https://github.com/mathjax/MathJax/issues/2831#issuecomment-1236486740

dpvc avatar Sep 05 '22 12:09 dpvc

It looks like the parenthesis balancing that the physics package implements is losing the font variant for the closing paren. I will look into it.

dpvc avatar Sep 05 '22 12:09 dpvc

I have made a PR to correct the issue.

dpvc avatar Sep 13 '22 12:09 dpvc