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

Primes don't work properly with class OP in TeX input #3202

Open
dpvc opened this issue Mar 5, 2024 · 0 comments
Open

Primes don't work properly with class OP in TeX input #3202

dpvc opened this issue Mar 5, 2024 · 0 comments
Labels
Accepted Issue has been reproduced by MathJax team Merged Merged into develop branch Test Needed
Milestone

Comments

@dpvc
Copy link
Member

dpvc commented Mar 5, 2024

The ' is misplaced when used with operators in TeX for both inline and display math. For example, \sum_n' is treated as {\sum_n} rather than \sum_n^\prime. This is due to the handling of the base in the PrimeItem stack item class, which only takes msubsup bases into account, and not munderover.

Also, using \limits with primes doesn't work, so \int\limits' should put the prime above the integral, but doesn't.

Finally,

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mover>
    <mo>&#x2211;</mo>
    <mo data-mjx-alternate="1" data-mjx-pseudoscript="true">&#x2033;</mo>
  </mover>
</math>

uses the wrong size primes, while

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mover>
    <mo>&#x2211;</mo>
    <mo data-mjx-alternate="1" data-mjx-pseudoscript="true">&#x20323;</mo>
  </mover>
</math>

uses the correct size. This is due to the operator dictionary marking U+2033 as a TeX accent, while U+2032 is not.

Originally pointed out in a mathoverflow post

@dpvc dpvc added the Accepted Issue has been reproduced by MathJax team label Mar 5, 2024
dpvc added a commit to mathjax/MathJax-src that referenced this issue Mar 6, 2024
@dpvc dpvc added this to the v4.0 milestone Mar 6, 2024
dpvc added a commit to mathjax/MathJax-src that referenced this issue Mar 16, 2024
Handle primes in munderover as in msubsup.  (mathjax/MathJax#3202)
@dpvc dpvc added Merged Merged into develop branch and removed Ready for Review labels Mar 16, 2024
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 Merged Merged into develop branch Test Needed
Projects
None yet
Development

No branches or pull requests

1 participant