{"id":3936,"date":"2022-05-17T06:39:02","date_gmt":"2022-05-17T06:39:02","guid":{"rendered":"https:\/\/www.scijournal.org\/articles\/?p=3936"},"modified":"2022-07-14T03:21:34","modified_gmt":"2022-07-13T19:21:34","slug":"mathbb-command-in-latex","status":"publish","type":"post","link":"https:\/\/www.scijournal.org\/articles\/mathbb-command-in-latex","title":{"rendered":"How to write with the mathbb in LaTeX?"},"content":{"rendered":"\n<p><em>This article aims to show you the simplest and easiest way to write with <\/em><em>the mathbb command in LaTeX<\/em><em>.<\/em><\/p>\n\n\n\n<p>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&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Blackboard Bold<\/strong><\/h2>\n\n\n\n<p>This font is usually used in mathematics to represent the set of real numbers <strong>R<\/strong>, 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.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"527\" height=\"140\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image3-7.png\" alt=\"Mathbb Command In Latex : Symbols examples with \\mathbb{ABC}. Images created with LaTeX by the author.\" class=\"wp-image-3937\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image3-7.png 527w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image3-7-300x80.png 300w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><figcaption>Symbols examples with \\mathbb{ABC}. Images created with LaTeX by the author.<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Mathbb Command in LaTeX<\/strong><\/h2>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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 \\<strong>mathbb<\/strong>{}, inside the brackets {} goes the argument you will want to write with the font.<\/p>\n\n\n\n<p>For example<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\documentclass{article}\n\\usepackage{amssymb} %we added the package to the document\n\\begin{document} \nThe set of real numbers is denoted by $\\mathbb{R}$ %the command is used here\n\\end{document}\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"642\" height=\"80\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image1-8.png\" alt=\"Mathbb Command In Latex : Images created with LaTeX by the author.\" class=\"wp-image-3938\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image1-8.png 642w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image1-8-300x37.png 300w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><figcaption>Images created with LaTeX by the author.<\/figcaption><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\">Output for \\<strong>mathbb<\/strong> command<\/p>\n\n\n\n<p>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<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\documentclass{article}\n\\usepackage{amsfonts} %we added the package to the document\n1) Other set of numbers can be $\\mathbb{N}$ or $\\mathbb{Q}$.\\\\\n\\vspace{5pt}\n2) $\\backslash$mathbb\\{\\} does not work with\\\\ \nGreek letters $\\mathbb{\\alpha}$ is the same as $\\alpha$\n\\end{document}\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"598\" height=\"157\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image2-7.png\" alt=\"Mathbb Command In Latex : Images created with LaTeX by the author.\" class=\"wp-image-3939\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image2-7.png 598w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image2-7-300x79.png 300w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><figcaption>Images created with LaTeX by the author.<\/figcaption><\/figure><\/div>\n\n\n<p>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&#8217;re going to write with this font or command in other languages.<\/p>\n\n\n\n<p>I hope this tutorial was helpful, and as always keep writing in LaTeX<\/p>\n\n\n\n<p><em>All the images were created in LaTeX by the author.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Further Reading<\/strong><\/h2>\n\n\n\n<p><strong>LaTex Tutorial<\/strong> <strong>on Symbols<\/strong><\/p>\n\n\n\n<ol><li><a href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\">How To Create A Cross Product Symbol In LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/hat-symbol-in-latex\">How to create a hat symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/prime-symbol-in-latex\">How to create a prime symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/absolute-value-symbol-in-latex\">How to create an absolute value symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/approximate-symbol-in-latex\">How to create an approximate symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/intersection-symbol-in-latex\">How to create an intersection symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/empty-set-symbol-in-latex\">How to create the empty set symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/degree-symbol-in-latex\">How to write a degree symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/dot-product-in-latex\">How to write a dot product in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/greater-than-symbol-in-latex\">How to Write a Greater Than Symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/norm-symbol-in-latex\">How to write a norm symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/plus-minus-symbol-in-latex\">How to write A Plus-Minus Symbol in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/proportional-to-symbol-in-latex\">How to write a proportional to symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/real-number-symbol-in-latex\">How to write a real number symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/tilde-symbol-in-latex\">How to write a tilde symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/union-symbol-in-latex\">How to write a union symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/vector-in-latex\">How to write a vector in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/infinity-symbol-in-latex\">How to write an infinity symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/bold-text-in-latex\">How to write bold text in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/dots-symbols-in-latex\">How To Write Dots Symbols In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/arrow-symbols-in-latex\">How to write the arrow symbols in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/degree-celsius-symbol-in-latex\">How to write the Degree celsius symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/equal-or-not-equal-symbol-in-latex\">How to write the equal or not equal symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/euro-symbol-in-latex\">How to write the Euro symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/floor-symbol-in-latex\">How to write the floor symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/gradient-operator-symbol-in-latex\">How to write the gradient operator symbol in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/greater-than-or-equal-to-symbol-in-latex\">How To Write The Greater Than Or Equal To Symbol In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/integer-number-symbol-in-latex\">How to write the integer number symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/less-than-symbol-in-latex\">How to write the less than symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/natural-numbers-symbol-in-latex\">How to write the Natural numbers symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/parallel-symbol-in-latex\">How to write the parallel symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/percent-symbol-in-latex\">How to write the percent symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/square-root-symbol-in-latex\">How to write the square root symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/subset-in-latex\">How To Write The Symbol For A Subset In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/therefore-in-latex\">How to write the symbol for therefore in LaTeX?<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>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&nbsp; Blackboard Bold This font is usually used in mathematics &#8230; <a title=\"How to write with the mathbb in LaTeX?\" class=\"read-more\" href=\"https:\/\/www.scijournal.org\/articles\/mathbb-command-in-latex\" aria-label=\"Read more about How to write with the mathbb in LaTeX?\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":3943,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[52],"_links":{"self":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/3936"}],"collection":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/comments?post=3936"}],"version-history":[{"count":3,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/3936\/revisions"}],"predecessor-version":[{"id":5642,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/3936\/revisions\/5642"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media\/3943"}],"wp:attachment":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media?parent=3936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/categories?post=3936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/tags?post=3936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}