In LaTeX, less than and greater than are typed directly in math mode as < and >. Less than or equal to in LaTeX is \leq (or the alias \le), greater than or equal to is \geq (\ge) and not equal is \neq; all three are built in, so $a \leq b$ works in any document. Much-less-than is \ll, and the slanted, approximate and negated forms come from amssymb. The table lists the inequality symbols people use most, with the package each one needs; the full list of order symbols follows below.
| Symbol | Command | Use | Package | Copy |
|---|---|---|---|---|
< | Less than (type it directly) | built in | ||
> | Greater than (type it directly) | built in | ||
\leq | Less than or equal to (alias \le) | built in | ||
\geq | Greater than or equal to (alias \ge) | built in | ||
\neq | Not equal to (alias \ne) | built in | ||
\ll | Much less than | built in | ||
\gg | Much greater than | built in | ||
\leqslant | Less than or equal to, slanted | amssymb | ||
\lesssim | Less than or approximately | amssymb | ||
\not< | Not less than | built in | ||
\nleq | Not less than or equal to | amssymb | ||
\prec | Precedes (partial order); \succ for succeeds | built in |
Partial orders and preorders use the curly comparison symbols \prec, \succ, \preceq and \succeq, plus \preccurlyeq and \succcurlyeq from amssymb. Inclusion orders are \subseteq and \sqsubseteq. Extremal elements come from the built-in operators \min, \max, \inf and \sup, which take limits as subscripts in display math, for example \sup_{x \in S} f(x). Subset and element relations are covered on the set theory symbols page.
Only the negated, slanted and curly-equal forms need \usepackage{amssymb}; the rest is core LaTeX. Chains of inequalities such as a < b \leq c can be typed in one go. Read our guide to the greater-than and less-than symbols and the overview of mathematical expressions in LaTeX.
\prec\succ\preceq\succeq\preccurlyeq\succcurlyeq\nless\ngtr\nleq\ngeq\min\max\inf\sup\text{lub}\text{glb}