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?




\mathbbis defined in the packageamsfonts. I have no idea where\Zet al. may be defined, and the linked page isn't helpful. – barbara beeton Jan 24 '20 at 20:28\Zto yield\mathbb{Z}, but there is no such definition in standard LaTeX. You need to loadamssymb(or justamsfonts). – egreg Jan 24 '20 at 20:33A,B, andEin 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. – Mico Jan 25 '20 at 09:02