Integers in LaTeX (\mathbb{Z})
- LaTeX command
\mathbb{Z}- Package
- Add to your preamble:
\usepackage{amssymb} - Mode
- Math mode only
- Copy the Unicode character
- ℤ
U+2124
Where it is used
Blackboard-bold Z, the set of all integers, positive, negative and zero.
The Z comes from the German Zahlen. Common constructions include the cyclic group \mathbb{Z}/n\mathbb{Z}, the p-adic integers \mathbb{Z}_p (beware: some authors use \mathbb{Z}_n for the cyclic group instead), the lattice \mathbb{Z}^n, and \mathbb{Z}[i] for Gaussian integers. Subsets are written with subscripts such as \mathbb{Z}_{\ge 0}. \mathbb works only on capital letters in the standard fonts. Avoid simulating it with bold \mathbf{Z}, which was the older printed convention. In ring theory, \mathbb{Z} is the initial ring, and every abelian group is a \mathbb{Z}-module.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Integers: $\mathbb{Z}$
\[ \mathbb{Z}/n\mathbb{Z} = \{\bar{0}, \bar{1}, \ldots, \overline{n-1}\} \]
\end{document}Related symbols
- Rational Numbers
\mathbb{Q} - Natural Numbers
\mathbb{N} - Real Numbers
\mathbb{R} - Complement
\complement - Complex Numbers
\mathbb{C} - Set Minus
\setminus
Frequently asked questions
- How do I write Integers in LaTeX?
- Type \mathbb{Z} in math mode, for example $\mathbb{Z}/n\mathbb{Z} = \{\bar{0}, \bar{1}, \ldots, \overline{n-1}\}$. Load amssymb first with \usepackage{amssymb}.
- Which package do I need for \mathbb{Z}?
- \mathbb{Z} needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
- Can I use \mathbb{Z} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\mathbb{Z}$ in running text. If you only need the glyph in text, paste the Unicode character ℤ instead (with XeLaTeX or LuaLaTeX and a font that has it).
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기