LaTeX Blackboard Bold and Calligraphic Letters
LaTeX blackboard bold comes from \mathbb{R} with the amssymb package, giving ℝ. \mathcal{L} gives a calligraphic L with no package, and \mathfrak{g} gives Fraktur letters, again with amssymb.
$\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}$,
\quad $f\colon \mathbb{R}^n \to \mathbb{R}$Needs \usepackage{amssymb} in the preamble.
Full document you can compile
\documentclass{article}
\usepackage{amssymb}
\begin{document}
$\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}$,
\quad $f\colon \mathbb{R}^n \to \mathbb{R}$
\end{document}Which number sets are written in blackboard bold?
| Symbol | LaTeX | Meaning | HTML |
|---|---|---|---|
\mathbb{R} | Real numbers | ℝ | |
\mathbb{N} | Natural numbers | ℕ | |
\mathbb{Z} | Integers | ℤ | |
\mathbb{Q} | Rational numbers | ℚ | |
\mathbb{C} | Complex numbers | ℂ |
What is the difference between \mathcal, \mathscr and \mathfrak?
\mathcal is built in and gives the plain calligraphic style used for sets and big-O notation. \mathscr from mathrsfs is a curlier script, often for sheaves or a second family of sets. \mathfrak gives Fraktur, common for Lie algebras and ideals. Use one style per meaning and stay with it.
\verb|\mathcal|: $\mathcal{L}\ \mathcal{F}\ \mathcal{O}(n^2)$ \quad
\verb|\mathscr|: $\mathscr{L}\ \mathscr{F}$ \quad
\verb|\mathfrak|: $\mathfrak{g}\ \mathfrak{su}(2)$Needs \usepackage{amssymb}, \usepackage{mathrsfs} in the preamble.
Full document you can compile
\documentclass{article}
\usepackage{amssymb}
\usepackage{mathrsfs}
\begin{document}
\verb|\mathcal|: $\mathcal{L}\ \mathcal{F}\ \mathcal{O}(n^2)$ \quad
\verb|\mathscr|: $\mathscr{L}\ \mathscr{F}$ \quad
\verb|\mathfrak|: $\mathfrak{g}\ \mathfrak{su}(2)$
\end{document}Why does \mathbb not work for lowercase letters?
The amssymb font has capitals only. \mathbb{k} gives no error, just a wrong symbol, and \mathcal has the same limit. For lowercase double-struck letters and the indicator function 𝟙, use \mathbbm from the bbm package.
Indicator function: $\mathbbm{1}_A(x)$, \quad lowercase: $\mathbbm{k}$Needs \usepackage{bbm} in the preamble.
Full document you can compile
\documentclass{article}
\usepackage{bbm}
\begin{document}
Indicator function: $\mathbbm{1}_A(x)$, \quad lowercase: $\mathbbm{k}$
\end{document}Which package does each command need?
| Command | Package | Letters |
|---|---|---|
\mathbb | amssymb or amsfonts | A–Z |
\mathcal | none | A–Z |
\mathscr | mathrsfs | A–Z |
\mathfrak | amssymb or amsfonts | A–Z, a–z |
\mathbbm | bbm | A–Z, a–z, 1 |
How do you type ℝ outside LaTeX?
Copy it from the table above, or use the HTML code. More symbols with their LaTeX and HTML codes are in the symbols table, and Greek letters in the Greek letters table. The equation editor previews \mathbb as you type.
Sources
- amsfonts and amssymb documentation (CTAN), read Nov 28, 2026
- mathrsfs package (CTAN), read Nov 28, 2026
- bbm-macros package (CTAN), read Nov 28, 2026
- Unicode Standard, Letterlike Symbols chart (U+2100–U+214F), read Nov 28, 2026
Text drafted with AI from the cited documentation; every example compiled with TeX Live 2026; checked by Cem Demir. See the editorial policy.