العلاقات والمقارنات

عدم المساواة والتكافؤ والمجموعة الجزئية والمجموعة الفوقية ورموز المقارنة.

Relation symbols in LaTeX: not equal, approximately equal and less than

Relation symbols in LaTeX compare two expressions, and the common ones are all built in. Not equal in LaTeX is \neq (≠), approximately equal is \approx (≈), less than and greater than are typed as < and >, and less than or equal to is \leq (≤). Equivalence is \equiv, similar is \sim, congruent is \cong and proportional to is \propto. Negate any relation with \not in front, or load amssymb for dedicated forms like \nleq and slanted ones like \leqslant. The table lists the relations people use most, with the package each one needs; the full list follows below.

Quick reference: the most used relation symbols

SymbolCommandUsePackageCopy
≠\neq
\neqNot equal (alias \ne)built in
≈\approx
\approxApproximately equalbuilt in
<<
<Less thanbuilt in
>>
>Greater thanbuilt in
≤\leq
\leqLess than or equal tobuilt in
≥\geq
\geqGreater than or equal tobuilt in
≡\equiv
\equivEquivalent, identical, congruent mod nbuilt in
∼\sim
\simSimilar, distributed asbuilt in
≅\cong
\congCongruent, isomorphicbuilt in
∝\propto
\proptoProportional tobuilt in
≪\ll
\llMuch less than (\gg for much greater)built in
⩽\leqslant
\leqslantSlanted less than or equal toamssymb

Strict and partial orders, including \prec and \succeq, are on the order and inequality symbols page; subset relations are on the set theory symbols page.

Frequently asked questions about relation symbols in LaTeX

How do I write not equal in LaTeX?
Use \neq (or its alias \ne) in math mode: $a \neq b$ prints a ≠ b. No package is needed. For other negated relations put \not in front, as in \not\equiv, or use the dedicated amssymb versions such as \nleq and \ncong.
How do I write approximately equal in LaTeX?
\approx prints ≈ and is the standard approximately-equal symbol: $\pi \approx 3.14$. Close relatives are \simeq (≃), \cong (≅), \sim (∼) and \doteq (≐), all built in, and \approxeq (≊) from amssymb.
How do I write less than in LaTeX?
In math mode type < and > directly: $a < b$. In running text outside math mode, use \textless and \textgreater or wrap the sign in $...$, since with the old OT1 font encoding a bare < can print as an inverted exclamation mark.
≤\leq
≥\geq
≠\neq
≈\approx
≡\equiv
∝\propto
∼\sim
≅\cong
⊂\subset

Subset

\subset
⊆\subseteq
⊊\subsetneq

Proper Subset

\subsetneq
⊃\supset

Superset

\supset
⊇\supseteq
⊥\perp
∥\parallel

Parallel

\parallel
∦\nparallel

Not Parallel

\nparallel
≪\ll
≫\gg
≺\prec
≻\succ
⪯\preceq
⪰\succeq
≍\asymp
:=:=
≜\triangleq

Triangle Equal

\triangleq