The LaTeX command for mathcal D (𝒟) is \mathcal{D}.
\mathcal{D}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
| Command | Package | Use it when |
|---|---|---|
\mathcal{D} recommended | none | Calligraphic D: a dataset, a distribution, a domain. |
\mathscr{D} | mathrsfs | Script D, more ornate. |
\mathfrak{D} | amssymb | Fraktur D. |
\mathbb{D} | amssymb | Blackboard D, e.g. the unit disc. |
Write \mathcal{D} 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{D}$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\bigotimes\mathcal{L}\mathcal{H}\mathcal{F}\mathcal{A}\mathcal{B}\mathcal{C}\mathcal{G}\mathcal{M}\mathcal{N}\mathcal{P}\mathcal{R}\mathcal{S}\mathcal{T}More math symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \mathcal{D} in math mode; it needs no extra package. For example, $X \sim \mathcal{D}$.
None: \mathcal{D} is built into LaTeX, so no extra package is required.
\mathcal only has capital letters: \mathcal{d} prints a wrong glyph.