`!=` is `\neq` in LaTeX.