Skip to content

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

@dpvc

Description

@dpvc
Member

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamMergedMerged into develop branchTest Needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dpvc

        Issue actions

          Primes don't work properly with class OP in TeX input · Issue #3202 · mathjax/MathJax