Re: [NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Hans Hagen
On 4/27/2015 12:13 AM, Maggyero wrote: Dear list members, What is the ConTeXt equivalent of the LaTeX function \newmcodes@ defined in the AMSopn package (this function is used inside \DeclareMathOperator and \operatorname and has the effect of resetting text-mode punctuation characters such as

[NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Maggyero
\definemathcommand[xyz][nolop]{\text{fancy-function-name'*.:}} The problem with this solution is that the font of the operator becomes the normal text font whereas I want to use the standard math upright font (so \mfunction + \kern\zeropoint + \newmathcodes is the way to go). For instance with

Re: [NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Hans Hagen
On 4/27/2015 9:14 PM, Maggyero wrote: Does \definemathcommand [xyz] [nolop] {xyz} do what you want? Not really if, instead of xyz, I want a name with hyphens, quotes, stars or colons. Compare the output of \definemathcommand[xyz][nolop]{fancy-function-name'*.:} in ConTeXt with the output of

[NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Maggyero
do you have an example of usage Yes, I am trying to create the command \operatorname in ConTeXt. I know that in LaTeX \operatorname{xyz} is equivalent to \mathop{\newmcodes@\kern\z@\operator@font xyz}\csname nolimits@\endcsname} according to the AMSopn package (

Re: [NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Aditya Mahajan
On Mon, 27 Apr 2015, Maggyero wrote: do you have an example of usage Yes, I am trying to create the command \operatorname in ConTeXt. I know that in LaTeX \operatorname{xyz} is equivalent to \mathop{\newmcodes@\kern\z@\operator@font xyz}\csname nolimits@\endcsname} I also know that there is

[NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Maggyero
Does \definemathcommand [xyz] [nolop] {xyz} do what you want? Not really if, instead of xyz, I want a name with hyphens, quotes, stars or colons. Compare the output of \definemathcommand[xyz][nolop]{fancy-function-name'*.:} in ConTeXt with the output of

[NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-26 Thread Maggyero
Dear list members, What is the ConTeXt equivalent of the LaTeX function \newmcodes@ defined in the AMSopn package (this function is used inside \DeclareMathOperator and \operatorname and has the effect of resetting text-mode punctuation characters such as *, -, /, :, and ’ in operator names)?