TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
possible duplicate of How do I make a blackboard 1? – Gonzalo Medina Aug 27 '11 at 15:04
The \mathbb provided as part of the amsfonts package does not provide numerals. Section 3.3 of amsfonts' documentation states that the \mathbb command it provides uses the msbm font and so supports only uppercase letters: no lowercase, no numerals. – mas Aug 27 '11 at 15:52
up vote 61 down vote accepted

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

share|improve this answer
I guess \mathbbm{1}is the best in terms of consistency with \mathbb. – Alfredo Hernández Nov 28 '14 at 23:15

Another option is to use bbold package.

\[ \mathbb{1} \]

bbold example

Though it ruins the letters.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.