8 commands, each with the package it needs
Abstract
Natural, integer, rational, real and complex numbers in blackboard bold. Every one of them needs \usepackage{amssymb}. Table 1 lists every symbol of the category with its rendered glyph, the command to type and the package to load; each name links to a page with a worked example.
| Glyph | Command | Package | Page |
|---|---|---|---|
\mathbb{N} | amssymb | Natural Numbers | |
\mathbb{Z} | amssymb | Integers | |
\mathbb{Q} | amssymb | Rational Numbers | |
\mathbb{R} | amssymb | Real Numbers | |
\mathbb{C} | amssymb | Complex Numbers | |
\mathbb{P} | amssymb | Prime Numbers | |
\mathbb{H} | amssymb | Quaternions | |
\mathbb{O} | amssymb | Octonions |
Table 1. Number sets in LaTeX: glyph, command, package (none means built into LaTeX) and the page for each symbol. Commands go inside math mode unless the page says otherwise.
The same table exists for every family of symbols. To find one by name or by pasting the character, use the symbol search.