TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


This leads to pretty strange spacing:

strange spacing

How can I resolve this? Is there a better way to specify the operator?

share|improve this question
You mean the spacing between the “o” and the opening bracket? – Caramdir Aug 25 '10 at 16:12
up vote 7 down vote accepted

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 http://tex.stackexchange.com/questions/1232/difference-between-big-and-bigl/1234#1234

share|improve this answer
Thank you! I do not know why I did not use \DeclareMathOperator in the first place for this instance. The link about spacing is also quite helpful. – Bran the Blessed Aug 26 '10 at 17:47

I tend to use the spacing commands such as \mathleft for left punctuation, \mathright for right punctuation, \mathop for a "large" operator, \mathbin for a binary operator, \mathrel for a relation sign. Details on p. 75ff of Voß's Mathmode.pdf.

share|improve this answer
Do you mean \mathopen and \mathclose? – TH. Aug 26 '10 at 5:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.