Den 18 aug. 2016 9:09 em skrev "Aditya Mahajan"
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
If your question is of interest to others as well, please add an entry to
___________________________________________________________________________________ the Wiki!
maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________ Thank you very much for the clear explanation and neat work-around, Aditya. /Mikael