1. Enrique Argones Rúa

    Why don’t you choose the more traditional notation \mathds{R}, \mathds{N}, etc.?

    For using this you would have to include the package dsfont.



  2. Joe

    ..I should have been more specific: thanks Enrique! The mathbb font is pretty well known, but the font for the more traditional number systems is hard to find.

    • Hi,

      Not sure if a number set symbol is commonly used for binary numbers. But try the following with any letter:


      Best, Tom.

    • Hey Heni,

      Thanks for your question. Is this what you were looking for?

      • Joan

        Though a minor difference, $\mathbb{R}^n$ produces a BOLD n as the dimension of R. Is there any way to make this n slimmer?

        Thanks a lot.

      • tom

        Hi Joan,

        How you perceive it might depend on the font used. In Computer Modern, the n doesn’t look bold in my opinion. Here’s what a bold n would look like, as compared to the normal font style in math mode:

        \usepackage{amsfonts, amsmath, graphicx}
        $\mathbb{R}^{\boldsymbol n} \text{ vs. } \mathbb{R}^{n}$

        Maybe you want to change the font size to make the letter n slimmer, and smaller obviously?

        Also, I’d be curious to learn what configuration you used that made the letter thicker than what you would expect.

        Cheers, Tom

  3. Courtney

    Hi! In the last line, the set of positive reals should be strictly R_>0, not R_≥0, which represents the nonnegative reals. The difference is subtle, but important 🙂

  4. Petra


    This isn’t working. Can you help me? It sais “\mathbb allowed only in math mode”

    • tom

      Hi Petra,

      Thanks for the minimal working example. The command only works in math mode. So this should do the trick:


      It wasn’t clear from the post and I’m going to change that. Thanks for bringing this up.

      Best, Tom

  5. Thomas Pierre Nicolas Jean Brouard

    hi it does not work for me for P. What can be wrong? I use the two packages

    • tom

      Hi Thomas,

      Consider the example below. If this doesn’t help solving you problem, please provide a minimal working example to illustrate the issue.



  6. Andrew

    How do I define my own sets so that they do not collide with the conventional ones? eg. P for a set of particles (not to mean a set of Primes) in Latex.

    • tom

      Hi Andrew,

      I’m not sure I understand the question. Would you like to generate the same symbol with a different command or a similar, but different symbol?

Leave a Reply