This question already has an answer here:

I want to have definitions like $x :=1$ in my tex to look good, and to be really different from a statement of equality like $x = 1$.

However, the $:$ and $=$ are not alligned, and this looks ugly.

How do I overcome this?

marked as duplicate by Mico math-mode Sep 17 '15 at 7:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


See this. The package mathtools provides 'coloneqq' (:=) and 'eqqcolon' (=:).

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