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.

LaTeX
$\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}$,
\quad $f\colon \mathbb{R}^n \to \mathbb{R}$
OutputThe chain N subset Z subset Q subset R subset C in blackboard bold, and f from R to the n to R.

Needs \usepackage{amssymb} in the preamble.

Full document you can compile
example.tex
\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?

SymbolLaTeXMeaningHTML
\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.

LaTeX
\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)$
OutputCalligraphic L, F and O of n squared, script L and F, and Fraktur g and su of 2.

Needs \usepackage{amssymb}, \usepackage{mathrsfs} in the preamble.

Full document you can compile
example.tex
\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.

LaTeX
Indicator function: $\mathbbm{1}_A(x)$, \quad lowercase: $\mathbbm{k}$
OutputAn indicator function written as a double-struck 1 sub A of x, and a lowercase double-struck k.

Needs \usepackage{bbm} in the preamble.

Full document you can compile
example.tex
\documentclass{article}
\usepackage{bbm}
\begin{document}
Indicator function: $\mathbbm{1}_A(x)$, \quad lowercase: $\mathbbm{k}$
\end{document}

Which package does each command need?

CommandPackageLetters
\mathbbamssymb or amsfontsA–Z
\mathcalnoneA–Z
\mathscrmathrsfsA–Z
\mathfrakamssymb or amsfontsA–Z, a–z
\mathbbmbbmA–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.

Text drafted with AI from the cited documentation; every example compiled with TeX Live 2026; checked by Cem Demir. See the editorial policy.