Natural number (ℕ) symbol in LaTeX?

In this tutorial, I will show you how to get the Natural number symbol in LaTeX. This symbol has no default command, so you must use a package to get this symbol. Multiple packages provide this symbol with slightly different styles.

You can go with the \mathbb{N} command provided by amssymb package. Or follow the table to get a different style.

Package Command Output
amssymb $\mathbb{N}$ $\mathbb{N}$
txfonts $\mathbb{N}$ $\mathbb{N}$
txfonts $\varmathbb{N}$ $\varmathbb{N}$
pxfonts $\mathbb{N}$ $\mathbb{N}$
bbold $\mathbb{N}$ $\mathbb{N}$
bbm $\mathbbmss{N}$ $\mathbbmss{N}$
dsserif $\mathbb{N}$ $\mathbb{N}$
\documentclass{article}
\usepackage{amssymb}
\begin{document}

Set of Natural number $\mathbb{N}$:

$\mathbb{N} = \{1,2,3,\dots \}$

\end{document}

Output:
Set of natural numbers.

Natural number symbol in text mode

In order to get the natural number symbol in text mode, you have to create a \newcommand. Like this.

\newcommand{\textN}{\ensuremath{\mathbb{N}\;}}

Here, the \ensuremath makes the new command workable in both math and text mode. and \; leave a small space at the end of ℕ.

\documentclass{article}
\usepackage{amssymb}
\newcommand{\textN}{\ensuremath{\mathbb{N}\;}}
\begin{document}

Set of Natural number \textN:

$\textN = \{1,2,3,\dots \}$

\end{document}

Output:

Set of natural number symbol in both text and math mode.

Leave a Reply

Your email address will not be published. Required fields are marked *