Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Latex > FAQ > Latex - FAQ > How to write number sets N Z D Q R C with Latex: \mathbb, amsfonts and \mathbf

How to write number sets N Z D Q R C with Latex: \mathbb, amsfonts and \mathbf

All the versions of this article: <English> <français>

How to write number sets R Z Q N with Latex ?

In old books, classic mathematical number sets are marked in bold as follows


$\mathbf{R}$ is the set of real numbers.

So we use the \ mathbf command. Which give:

$\mathbf{R}$ is the set of reals.

You will have noticed that in recent books, we use a font that is based on double bars, this notation is actually derived from the writing of classic sets on the blackboard: indeed, on the blackboard we do not fill these sets, or it would take a ton of chalk !!! In Latex, we use the amsfonts package
In the preamble we have:


\usepackage{amsfonts}

and \mathbb command


$\mathbb{R}$ is the set of real numbers.

\mathbb{R}
is the set of real numbers.

An another example:


$$\mathbb{N} \subset \mathbb{Z} \subset \mathbb{D} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}$$

$$\mathbb{N} \subset \mathbb{Z} \subset \mathbb{D} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}$$

Also in this section

  1. How to get dots in Latex \ldots,\cdots,\vdots and \ddots
  2. Partial Derivatives of Multivariable Functions in LaTeX
  3. $L^1$, $L^2$, $L^p$ and $L^\infty$ spaces in Latex
  4. Greater Than or Similar To Symbol in LaTeX
  5. Horizontal and vertical curly Latex braces: \left\{,\right\},\underbrace{} and \overbrace{}
  6. How to display formulas inside a box or frame in Latex ? \boxed
  7. How to write a vector in Latex ? \vec,\overrightarrow
  8. How to write algorithm and pseudocode in Latex ?\usepackage{algorithm},\usepackage{algorithmic}
  9. How to write angle in latex langle, rangle, wedge, angle, measuredangle, sphericalangle
  10. How to write matrices in Latex ? matrix, pmatrix, bmatrix, vmatrix, Vmatrix
  11. How to write number sets N Z D Q R C with Latex: \mathbb, amsfonts and \mathbf
  12. How to write table in Latex ? begin{tabular}...end{tabular}
  13. Intersection and big intersection symbols in LaTeX
  14. Laplace Transform in LaTeX
  15. Latex absolute value
  16. Latex arrows
  17. Latex backslash symbol
  18. Latex binomial coefficient
  19. Latex bra ket notation
  20. Latex ceiling function
  21. Latex complement symbol
  22. Latex complex numbers
  23. Latex congruent symbol
  24. Latex convolution symbol
  25. Latex copyright, trademark, registered symbols
  26. Latex dagger symbol or dual symbol
  27. Latex degree symbol
  28. LateX Derivatives, Limits, Sums, Products and Integrals
  29. Latex empty set
  30. Latex euro symbol
  31. Latex expected value symbol - expectation
  32. Latex floor function
  33. Latex gradient symbol
  34. Latex hat symbol - wide hat symbol
  35. Latex horizontal space: qquad,hspace, thinspace,enspace
  36. Latex how to hide page number
  37. Latex how to insert a blank or empty page with or without numbering \thispagestyle,\newpage,\usepackage{afterpage}
  38. Latex how to write a fraction
  39. Latex how to write bar
  40. Latex how to write percent
  41. Latex how to write text in math mode
  42. Latex how to write underscore
  43. Latex imaginary part symbol
  44. Latex indicator function
  45. Latex infinity symbol
  46. Latex jacobian symbol
  47. Latex natural numbers
  48. Latex normal distribution symbol
  49. Latex not parallel symbol
  50. Latex not subset symbol
  51. Latex numbering equations
  52. Latex orthogonal symbol - Latex perpendicular symbol
  53. Latex overset and underset
  54. Latex parallel symbol
  55. Latex piecewise function
  56. Latex plus or minus symbol
  57. Latex product symbol
  58. Latex quaternion numbers
  59. Latex rational numbers
  60. Latex real numbers
  61. Latex real part symbol
  62. Latex square root symbol
  63. Latex subset symbol
  64. Latex symbol approximately
  65. Latex symbol average
  66. Latex symbol belongs to
  67. LaTeX symbol characteristic function
  68. Latex symbol checkmark
  69. Latex symbol different
  70. Latex symbol exists
  71. Latex symbol for all x
  72. Latex symbol if and only if / equivalence
  73. LaTeX symbol Is proportional to
  74. Latex symbol multiply
  75. Latex symbol norm for vector and sum
  76. Latex symbol not equal
  77. Latex symbol not exists
  78. Latex symbol not in
  79. LaTex symbol partial derivative
  80. Latex symbol Planck constant h
  81. Latex symbol there exists one and only one
  82. Latex tensor product
  83. Latex yen symbol
  84. Not Equivalent Symbol in LaTeX
  85. Strikethrough - strike out text or formula in LaTeX
  86. Text above arrow in LaTeX
  87. Transpose Symbol in LaTeX
  88. Union and Big Union Symbol in LaTeX
  89. Variance Symbol in LaTeX