Ketaksamaan & Tertib

Mendahului, mengganti, min, max, inf, sup, dan sempadan.

Less than, greater than and less than or equal to in LaTeX

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.

SymbolCommandUsePackageCopy
<<
<Less than (type it directly)built in
>>
>Greater than (type it directly)built in
≤\leq
\leqLess than or equal to (alias \le)built in
≥\geq
\geqGreater than or equal to (alias \ge)built in
≠\neq
\neqNot equal to (alias \ne)built in
≪\ll
\llMuch less thanbuilt in
≫\gg
\ggMuch greater thanbuilt in
⩽\leqslant
\leqslantLess than or equal to, slantedamssymb
≲\lesssim
\lesssimLess than or approximatelyamssymb
≮\not<
\not<Not less thanbuilt in
≰\nleq
\nleqNot less than or equal toamssymb
≺\prec
\precPrecedes (partial order); \succ for succeedsbuilt in

Partial orders and bounds

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.

Frequently asked questions

How do I write less than or equal to in LaTeX?
Write \leq, or its shorter alias \le, in math mode: $a \leq b$. Greater than or equal to is \geq or \ge. Both are built in. For the slanted style common in European texts, load amssymb and use \leqslant and \geqslant.
How do I type the less than symbol in LaTeX?
In math mode type < directly: $a < b$. In running text outside math mode, the default OT1 font encoding prints ¡ instead of <, so either wrap it as $<$ or use \textless (and \textgreater for >), or load \usepackage[T1]{fontenc}.
How do I write not less than or not equal in LaTeX?
Not equal is \neq or \ne. For the other relations, put \not in front of the symbol, as in \not<, or load amssymb for the dedicated negations \nless, \ngtr, \nleq and \ngeq, which look cleaner than a stacked slash.
What is the difference between \leq and \le in LaTeX?
None: \le is an alias of \leq and both print ≤, just as \ge is an alias of \geq and \ne an alias of \neq. Use whichever you prefer, consistently.
≤\leq
≥\geq
≪\ll
≫\gg
≺\prec
≻\succ
⪯\preceq
⪰\succeq
≼\preccurlyeq

Curly Precedes

\preccurlyeq
≽\succcurlyeq

Curly Succeeds

\succcurlyeq
≮\nless
≯\ngtr
≰\nleq
≱\ngeq
min⁡\min
max⁡\max
inf⁡\inf
sup⁡\sup
lub\text{lub}
glb\text{glb}