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

Physics extension trigonometric functions spacing issue #2760

Closed
kzvi opened this issue Aug 18, 2021 · 1 comment
Closed

Physics extension trigonometric functions spacing issue #2760

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

Comments

@kzvi
Copy link

kzvi commented Aug 18, 2021

Issue Summary

When the physics extension is used, math expressions such as \sin(x) render incorrectly (with too much space before the left parenthesis).

In actual LaTeX with the physics package, \sin(x) renders the same as \operatorname{sin}(x).

Example

See here for a demonstration of the difference between \sin(x) and \operatorname{sin}(x) in MathJax: https://jsbin.com/laxuzemunu/edit?html,output

Screen Shot 2021-08-17 at 9 35 02 PM

Technical details:

  • MathJax Version: 3
  • Client OS: Mac OS 11.4
  • Browser: Firefox
@dpvc
Copy link
Member

dpvc commented Feb 7, 2022

Sorry for the long delay in getting back to you one this. We are preparing a new release and have included a fix for this issue. Thanks for reporting it.

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