According to oeis.org, I should be able to write the symbols for the integers like so: \Z
. However, this doesn't work. Here is my LaTeX file:
\documentclass{article}\usepackage{amsmath}
\begin{document}
$\mathcal {P} (\mathbb{Z})$
\Z
\end{document}
I have also tried following this question. However, again, no luck. Here is my code:
\documentclass{article}\usepackage{amsmath}
\begin{document}
$\mathbb{Z}$
\end{document}
I suspect I need to import a package. However, I don't know which, and none of the sources I have mentioned seem to refer to a package I need to import. How should I proceed?
\mathbb
is defined in the packageamsfonts
. I have no idea where\Z
et al. may be defined, and the linked page isn't helpful.\Z
to yield\mathbb{Z}
, but there is no such definition in standard LaTeX. You need to loadamssymb
(or justamsfonts
).A
,B
, andE
in math mode, one can do so by writing\Alpha
,\Beta
, andEpsilon
. And, to give just another example, there's a claim that+
and-
are unary operators. That's just wrong: by default, TeX treats them as binary operators. However, TeX has clever rules in place to adjust the spacing around the symbols if they're used as unary operators.