I have defined my own math operator (for displaying the order of certain function sequences–this is not the "normal" Big-O notation, though) by:
\newcommand{\order}[1]{\ensuremath{\operatorname{o}\left({#1}\right)}}
This leads to pretty strange spacing:
How can I resolve this? Is there a better way to specify the operator?
Best Answer
First, I think in general it is probably a better idea to use
\DeclareMathOperator
rather than a combination of\newcommand
and\operatorname
. That said, I think your problem is because you used\left(
. It should be fixed if you insert\mathopen{}
before the\left(
. See also Difference between \big[ and \bigl[