The LaTeX command for sim (∼) is \sim (similar to).
\simWriting a paper? The table generator and the BibTeX cleaner are one click away, no account.
| Command | Package | Use it when |
|---|---|---|
\sim recommended | none | Is distributed as, or is similar to. |
\tilde{x} | none | Tilde accent over one letter. |
\widetilde{xy} | none | Wide tilde over several letters. |
\textasciitilde | none | A tilde character in running text, e.g. in a URL. |
Write \sim inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
$X \sim \mathcal{N}(0, 1)$Open this example in the live preview: it renders as you type, with no compiler and no signup.
Relation symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \sim in math mode; it needs no extra package. For example, $X \sim \mathcal{N}(0, 1)$.
None: \sim is built into LaTeX, so no extra package is required.
A bare ~ is a non-breaking space in LaTeX, not a tilde: in math use \sim, in text \textasciitilde.