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

DeclareMathOperator * form has no affect #739

Closed
tik0 opened this issue Feb 13, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@tik0
Copy link

commented Feb 13, 2014

As discribed in "ftp://ftp.ams.org/ams/doc/amsmath/amsldoc.pdf" you can use the command "\DeclareMathOperator{\abc}{abc}" to define a new operator.
If you want to have limits instead of sub- and superscripts (_ and ^) you have to use the * form like:
\DeclareMathOperator*{\abc}{abc}

Unfortunately the * form dont has any affects.
Only limits are available.

PS.:
\operatorname works correct with the * form.

@pkra

This comment has been minimized.

Copy link
Member

commented Feb 13, 2014

I think the issue is with \operatorname* -- it should not change the placement of limits in inline equations. (At least that's how LaTeX/amsmath seems to do it for both \operatorname* and using \DeclareMathOperator*; see also Section 7.3 of the amsmath documentation.)

@dpvc is that correct?

@dpvc

This comment has been minimized.

Copy link
Member

commented Feb 13, 2014

The AMSmath documentation is not very clear about how this should work, but a test of LaTeX versus MathJax does point out that MathJax gets both \operatorname* and \DeclareMathOperator* wrong (and inconsistent with each other). The expression

\(\operatorname{abc}^2 \operatorname*{abs}^2
  \displaystyle
  \operatorname{abs}^2\operatorname*{abc}^2\)

should have all the squares to the right of the abc except for the last one, which should be above. MathJax currently gets this wrong (the second is also above).

Similarly

\DeclareMathOperator{\abc}{abc}
\DeclareMathOperator*{\abcstar}{abc}
\(\abc^2\abcstar^2 \disoplaystyle \abc^2\abcstar^2\)

should also produce three squares to the right and the last one above, but MathJax does one to the right and the last three above. So these need to be fixed.

@dpvc dpvc added Accepted labels Feb 13, 2014

@dpvc dpvc added this to the Bugfix Version milestone Feb 13, 2014

dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 13, 2014

dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 14, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented Feb 14, 2014

=> Merged.

@dpvc dpvc added Merged and removed Ready for Review labels Feb 14, 2014

@dpvc dpvc closed this Feb 14, 2014

dpvc pushed a commit to mathjax/MathJax-test that referenced this issue Apr 21, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented Apr 21, 2014

=> In Test Suite.

LaTeXToMathML/issue739.html

@dpvc dpvc added v2.4 and removed Merged labels Jun 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.