\definemathcommand lowers the text
![](https://secure.gravatar.com/avatar/3d131c6a351a6b0092c19b389bd99cf0.jpg?s=120&d=mm&r=g)
Hi! look at the output of this (attached) \definemathcommand [D] [nolop] {\mfunction{D}} \starttext Compare $\D f$ with $\mfunction{D}f$. \stoptext In the \D, the D is lowered a bit. I think it should not be, or else I misuse something. If so, how should I define my own operator (I found this example on the wiki). /Mikael
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 17 Aug 2016, Mikael P. Sundqvist wrote:
Hi!
look at the output of this (attached)
\definemathcommand [D] [nolop] {\mfunction{D}} \starttext Compare $\D f$ with $\mfunction{D}f$. \stoptext
In the \D, the D is lowered a bit. I think it should not be, or else I misuse something. If so, how should I define my own operator (I found this example on the wiki).
This is a "feature" of \mathop. \definemathcommand [D] [nolop] {\mfunction{D}} \starttext Compare $\D f$ with $\mfunction{D}f$ and $\mathop{\mfunction{D}}f$. \stoptext If the argument of \mathop is a single character, \mathop centers the glyph on the math axis (This is useful for \sum, \int, \prod, etc.). To circumvent this, use: \definemathcommand [D] [nolop] {\mfunction{D}\kern\zeropoint} Aditya
participants (2)
-
Aditya Mahajan
-
Mikael P. Sundqvist