I am using an operator with the definition
\newcommand{\tom}[2]{{\displaystyle\mathrel{\mathop{\to}^{#1}_{#2}}}}
with negation
\newcommand{\ntom}[2]{\centernot{\displaystyle\mathrel{\mathop{\to}^{#1}_{#2}}}}
The operator looks like this, with markup u\tom km w
:
and the negation looks like this, u\ntom km w
:
Notice in \tom
the u and w are smashed up against the arrow, whereas in the negation there is spacing around it. I'm not sure which one looks better, but is there a way to keep it consistent?
I'm also not too comfortable with using \displaystyle
, but it was the only way I could see to ensure the k and m stay above and below the arrow in \mathrel
/\mathop
.
\mathrel
is being negated by the outer{}
which makes a mathord. You can use\limits
rather than displaystyle to force the over position\tom
with a simple\xrightarrow[m]{k}
.\limits
? I'm trying various things and I get massive numbers of errors.