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
\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
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
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 (
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
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
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)?