# DeclareMathOperator * form has no affect #739

Closed
opened this issue Feb 13, 2014 · 4 comments

Projects
None yet
3 participants

### tik0 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.
Member

### pkra 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?
Member

### dpvc 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.

Closed

Member

### dpvc commented Feb 14, 2014

 => Merged.

Closed

Member

### dpvc commented Apr 21, 2014

 => In Test Suite. LaTeXToMathML/issue739.html