How to write with the mathbb in LaTeX?

How to write with the mathbb in LaTeX?

This post may contain affiliate links that allow us to earn a commission at no expense to you. Learn more

This article aims to show you the simplest and easiest way to write with the mathbb command in LaTeX.

Maybe you have heard or read about special commands for different fonts to use in LaTeX, today you will learn how to use it in your document 

Blackboard Bold

This font is usually used in mathematics to represent the set of real numbers R, denoted by white spaces between each line composing the letters, usually just uppercase letters are used with this font. Some people called it Double-Struck.

Mathbb Command In Latex : Symbols examples with \mathbb{ABC}. Images created with LaTeX by the author.
Symbols examples with \mathbb{ABC}. Images created with LaTeX by the author.

Mathbb Command in LaTeX

For some reason LaTeX does not have the ability to write with this font by default, therefore we will need to use external packages. Remember to load the packages in the preamble of your document.

There are two main packages that you can use, the amssymb packages or the amsfonts package. Both of them work great for our purpose. To write this symbol or sign, you use the command \mathbb{}, inside the brackets {} goes the argument you will want to write with the font.

For example

\usepackage{amssymb} %we added the package to the document
The set of real numbers is denoted by $\mathbb{R}$ %the command is used here
Mathbb Command In Latex : Images created with LaTeX by the author.
Images created with LaTeX by the author.

Output for \mathbb command

It is important to notice that the new command is used inside the math mode, so pay attention where you place this command or LaTeX will hit you with an error message. Another example could be

\usepackage{amsfonts} %we added the package to the document
1) Other set of numbers can be $\mathbb{N}$ or $\mathbb{Q}$.\\
2) $\backslash$mathbb\{\} does not work with\\ 
Greek letters $\mathbb{\alpha}$ is the same as $\alpha$
Mathbb Command In Latex : Images created with LaTeX by the author.
Images created with LaTeX by the author.

One key aspect regarding the command is that it only works with letters, it does not work with greek letters or symbols or numbers. So better do your little research if you’re going to write with this font or command in other languages.

I hope this tutorial was helpful, and as always keep writing in LaTeX

All the images were created in LaTeX by the author.

Further Reading

LaTex Tutorial on Symbols

  1. How To Create A Cross Product Symbol In LaTeX
  2. How to create a hat symbol in LaTeX?
  3. How to create a prime symbol in LaTeX?
  4. How to create an absolute value symbol in LaTeX?
  5. How to create an approximate symbol in LaTeX?
  6. How to create an intersection symbol in LaTeX?
  7. How to create the empty set symbol in LaTeX?
  8. How to write a degree symbol in LaTeX?
  9. How to write a dot product in LaTeX?
  10. How to Write a Greater Than Symbol in LaTeX?
  11. How to write a norm symbol in LaTeX?
  12. How to write A Plus-Minus Symbol in LaTeX
  13. How to write a proportional to symbol in LaTeX?
  14. How to write a real number symbol in LaTeX?
  15. How to write a tilde symbol in LaTeX?
  16. How to write a union symbol in LaTeX?
  17. How to write a vector in LaTeX?
  18. How to write an infinity symbol in LaTeX?
  19. How to write bold text in LaTeX?
  20. How To Write Dots Symbols In LaTeX?
  21. How to write the arrow symbols in LaTeX
  22. How to write the Degree celsius symbol in LaTeX?
  23. How to write the equal or not equal symbol in LaTeX?
  24. How to write the Euro symbol in LaTeX?
  25. How to write the floor symbol in LaTeX?
  26. How to write the gradient operator symbol in LaTeX
  27. How To Write The Greater Than Or Equal To Symbol In LaTeX?
  28. How to write the integer number symbol in LaTeX?
  29. How to write the less than symbol in LaTeX?
  30. How to write the Natural numbers symbol in LaTeX?
  31. How to write the parallel symbol in LaTeX?
  32. How to write the percent symbol in LaTeX?
  33. How to write the square root symbol in LaTeX?
  34. How To Write The Symbol For A Subset In LaTeX?
  35. How to write the symbol for therefore in LaTeX?

Photo of author
Joannah W.
Joannah has been a science publisher with close to 20 years of experience. She wants to help students and researchers stay ahead of the trends and developments in the science community by making science more accessible to everyone.

Leave a Comment