Whenever I need the indicator function I use (for example) the following syntax
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\Huge The indicator function :
$$ \mathbb 1_A (x) =
\begin{cases}
1\hspace{0.5cm} \text{if } x\in A\\
0\hspace{0.5cm} \text{if } x\notin A
\end{cases}
$$\end{document}
The problem is that the command mathbb 1_Aor more specifically mathbb 1 returns a weird sign that almost resembles the indicator function :
Is there any package that I should add ? Thanks !

