[Tex/LaTex] How to get \mathbb{1} to work (characteristic function of a set)


I am trying to get the digit one printed the \mathbb{} font in math mode, however the command


outputs some rubbish. I certainly saw the character I am after in some pdf's generated from latex, hence my question: how do you get it to work?

Best Answer

Since \mathbb doesn't support digits (with amssymb or txfonts) you may use bbm

\[ \mathbbm{1} \]

bbm example

or dsfont, the doublestroke package:

\[ \mathds{1} \]

dsfont example

Related Question