Complex number (ℂ) symbol in LaTeX

In this tutorial, I will show you how to get the Complex number symbol in LaTeX. You can use the \mathbb{C} command provided by the amssymb package. Or you can follow the table given below to get this symbol with different styles.

PackageCommandOutput
amssymb$\mathbb{C}$$\mathbb{C}$
txfonts$\mathbb{C}$$\mathbb{C}$
txfonts$\varmathbb{C}$$\varmathbb{C}$
pxfonts$\mathbb{C}$$\mathbb{C}$
bbold$\mathbb{C}$$\mathbb{C}$
bbm$\mathbbmss{C}$$\mathbbmss{C}$
dsserif$\mathbb{C}$$\mathbb{C}$
\documentclass{article}
\usepackage{amssymb}
\begin{document}

  Complex number symbol: $\mathbb{C}$

\end{document}

Output:
Complex number symbol.

Complex number symbol in text mode

In order to get the complex number symbol in LaTeX text mode, you have to use \newcommand to create a new command. Like this.

\newcommand{\textC}{\ensuremath{\mathbb{C}\;}}

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{\textC}{\ensuremath{\mathbb{C}\;}}
\begin{document}

  Complex number symbol text mode: \textC

  Complex number symbol math mode: $\textC$

\end{document}

Output:

complex number symbol in text mode.

Leave a Reply

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