How do I write not equal to sign (equivalent of != in C) in Latex pseudocode.
Asked
Active
Viewed 4.9e+01k times
95
4 Answers
6
If you want a literal != in a pseudocode listing, you can use \mathrel{\mathtt{!=}}. You could also use ≠ from the monospace font.
Unicode also has the symbol ⍯ from APL. It’s U+236F, and you can use it in LuaLaTeX or XeLaTeX.
Davislor
- 44,045
2
$\neg$ is - and $\not=$ is the equal sign with the slash through the center
M. Al Jumaily
- 4,035
- 2
- 11
- 26
Ohana
- 21
-1
I would add that if you are using RMarkdown, to have the symbol ≠ translate to a PDF you can use either $\neq$ or $\not=$.
$\neq$? – Jul 18 '12 at 09:23!=– Brent.Longborough Jul 18 '12 at 09:38