What is a satisfactory way to typeset ℕ in the Mathematica notebook?












13












$begingroup$


I am familiar with typing:



escintsesc



escrealsesc



to produce:



enter image description here



(when typing inside a DisplayFormula cell).



How would one typeset a similar looking ℕ ?



I have tried [DoubleStruckCapitalN]



but this produces a different looking result:



enter image description here



(ℕ (an N in "Blackboard Bold" font) is used to refer to the set of all natural numbers.)










share|improve this question









$endgroup$

















    13












    $begingroup$


    I am familiar with typing:



    escintsesc



    escrealsesc



    to produce:



    enter image description here



    (when typing inside a DisplayFormula cell).



    How would one typeset a similar looking ℕ ?



    I have tried [DoubleStruckCapitalN]



    but this produces a different looking result:



    enter image description here



    (ℕ (an N in "Blackboard Bold" font) is used to refer to the set of all natural numbers.)










    share|improve this question









    $endgroup$















      13












      13








      13


      5



      $begingroup$


      I am familiar with typing:



      escintsesc



      escrealsesc



      to produce:



      enter image description here



      (when typing inside a DisplayFormula cell).



      How would one typeset a similar looking ℕ ?



      I have tried [DoubleStruckCapitalN]



      but this produces a different looking result:



      enter image description here



      (ℕ (an N in "Blackboard Bold" font) is used to refer to the set of all natural numbers.)










      share|improve this question









      $endgroup$




      I am familiar with typing:



      escintsesc



      escrealsesc



      to produce:



      enter image description here



      (when typing inside a DisplayFormula cell).



      How would one typeset a similar looking ℕ ?



      I have tried [DoubleStruckCapitalN]



      but this produces a different looking result:



      enter image description here



      (ℕ (an N in "Blackboard Bold" font) is used to refer to the set of all natural numbers.)







      formatting






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 31 at 16:55









      Conor CosnettConor Cosnett

      3,3121029




      3,3121029






















          3 Answers
          3






          active

          oldest

          votes


















          16












          $begingroup$

          With Ctrl+Shift+E you can check that :reals: produces TemplateBox[{}, "Reals"]. Then you can take a peek at its DisplayFunction with:



          CurrentValue[{StyleDefinitions, "Reals"}]



          { TemplateBoxOptionsDisplayFunction -> (StyleBox["[DoubleStruckCapitalR]", ShowSyntaxStyles -> False, 
          FontFamily -> "Times"] &),
          TemplateBoxOptionsInterpretationFunction -> ("Reals" &),
          TemplateBoxOptionsTooltip -> Automatic}



          So the answer to your question is the FontFamily:



          Style["[DoubleStruckCapitalN]", FontFamily -> "Times"]


          enter image description here





          Update:



          In addition to that it is worth mentioning PositiveIntegers, NonNegativeIngeters and all family of combinations of sign+domain.



          So depending on context you can use :nnint: or :pint: for natural numbers:



          enter image description here



          Those TemplateBoxes have additional benefit, they have interpretation so while Style["[DoubleStruckCapitalR]", FontFamily -> "Times"] looks nice, :reals: looks nice and represents Reals you can use with symbolic math.






          share|improve this answer











          $endgroup$





















            5












            $begingroup$

            This comes from the pallete.



            esc dsN esc



            You can always Bold it with ctrl-b.



            Change to Traditional form with ctrl-shift-t to get the same as reals.






            share|improve this answer











            $endgroup$









            • 1




              $begingroup$
              It does not look like :reals: and friends.
              $endgroup$
              – Kuba
              Jan 31 at 22:06










            • $begingroup$
              Are you on a Mac? I'm on Windows and they sure look the same to me when they are both either bold or regular. It really doesn't matter to me what anyone chooses to use.
              $endgroup$
              – Bill Watts
              Feb 1 at 8:23










            • $begingroup$
              I am on Windows 10: i.stack.imgur.com/VQ2PX.png
              $endgroup$
              – Kuba
              Feb 1 at 8:29










            • $begingroup$
              Wow. I don't have have a site to show you, and I don't know what is going on, but except for the last one which isn't bold, they all look identical to your reals. Its a bracket in front of the R in all cases, not an I with serif. I enlarged the cell to make sure. I just figured it out. Inputform is different, but change to traditional form, it looks like yours.
              $endgroup$
              – Bill Watts
              Feb 1 at 8:47








            • 1




              $begingroup$
              Pretty close. I have Traditional form as my standard output form which I guess is the cause of the confusion. its getting close to 3 am my time so I'm done for awhile
              $endgroup$
              – Bill Watts
              Feb 1 at 9:38



















            3












            $begingroup$

            Building on Kuba's solution



            Here is code for a shortcut




            escnatsesc




            CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];


            enter image description here






            share|improve this answer









            $endgroup$













              Your Answer





              StackExchange.ifUsing("editor", function () {
              return StackExchange.using("mathjaxEditing", function () {
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
              });
              });
              }, "mathjax-editing");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "387"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f190593%2fwhat-is-a-satisfactory-way-to-typeset-%25e2%2584%2595-in-the-mathematica-notebook%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              16












              $begingroup$

              With Ctrl+Shift+E you can check that :reals: produces TemplateBox[{}, "Reals"]. Then you can take a peek at its DisplayFunction with:



              CurrentValue[{StyleDefinitions, "Reals"}]



              { TemplateBoxOptionsDisplayFunction -> (StyleBox["[DoubleStruckCapitalR]", ShowSyntaxStyles -> False, 
              FontFamily -> "Times"] &),
              TemplateBoxOptionsInterpretationFunction -> ("Reals" &),
              TemplateBoxOptionsTooltip -> Automatic}



              So the answer to your question is the FontFamily:



              Style["[DoubleStruckCapitalN]", FontFamily -> "Times"]


              enter image description here





              Update:



              In addition to that it is worth mentioning PositiveIntegers, NonNegativeIngeters and all family of combinations of sign+domain.



              So depending on context you can use :nnint: or :pint: for natural numbers:



              enter image description here



              Those TemplateBoxes have additional benefit, they have interpretation so while Style["[DoubleStruckCapitalR]", FontFamily -> "Times"] looks nice, :reals: looks nice and represents Reals you can use with symbolic math.






              share|improve this answer











              $endgroup$


















                16












                $begingroup$

                With Ctrl+Shift+E you can check that :reals: produces TemplateBox[{}, "Reals"]. Then you can take a peek at its DisplayFunction with:



                CurrentValue[{StyleDefinitions, "Reals"}]



                { TemplateBoxOptionsDisplayFunction -> (StyleBox["[DoubleStruckCapitalR]", ShowSyntaxStyles -> False, 
                FontFamily -> "Times"] &),
                TemplateBoxOptionsInterpretationFunction -> ("Reals" &),
                TemplateBoxOptionsTooltip -> Automatic}



                So the answer to your question is the FontFamily:



                Style["[DoubleStruckCapitalN]", FontFamily -> "Times"]


                enter image description here





                Update:



                In addition to that it is worth mentioning PositiveIntegers, NonNegativeIngeters and all family of combinations of sign+domain.



                So depending on context you can use :nnint: or :pint: for natural numbers:



                enter image description here



                Those TemplateBoxes have additional benefit, they have interpretation so while Style["[DoubleStruckCapitalR]", FontFamily -> "Times"] looks nice, :reals: looks nice and represents Reals you can use with symbolic math.






                share|improve this answer











                $endgroup$
















                  16












                  16








                  16





                  $begingroup$

                  With Ctrl+Shift+E you can check that :reals: produces TemplateBox[{}, "Reals"]. Then you can take a peek at its DisplayFunction with:



                  CurrentValue[{StyleDefinitions, "Reals"}]



                  { TemplateBoxOptionsDisplayFunction -> (StyleBox["[DoubleStruckCapitalR]", ShowSyntaxStyles -> False, 
                  FontFamily -> "Times"] &),
                  TemplateBoxOptionsInterpretationFunction -> ("Reals" &),
                  TemplateBoxOptionsTooltip -> Automatic}



                  So the answer to your question is the FontFamily:



                  Style["[DoubleStruckCapitalN]", FontFamily -> "Times"]


                  enter image description here





                  Update:



                  In addition to that it is worth mentioning PositiveIntegers, NonNegativeIngeters and all family of combinations of sign+domain.



                  So depending on context you can use :nnint: or :pint: for natural numbers:



                  enter image description here



                  Those TemplateBoxes have additional benefit, they have interpretation so while Style["[DoubleStruckCapitalR]", FontFamily -> "Times"] looks nice, :reals: looks nice and represents Reals you can use with symbolic math.






                  share|improve this answer











                  $endgroup$



                  With Ctrl+Shift+E you can check that :reals: produces TemplateBox[{}, "Reals"]. Then you can take a peek at its DisplayFunction with:



                  CurrentValue[{StyleDefinitions, "Reals"}]



                  { TemplateBoxOptionsDisplayFunction -> (StyleBox["[DoubleStruckCapitalR]", ShowSyntaxStyles -> False, 
                  FontFamily -> "Times"] &),
                  TemplateBoxOptionsInterpretationFunction -> ("Reals" &),
                  TemplateBoxOptionsTooltip -> Automatic}



                  So the answer to your question is the FontFamily:



                  Style["[DoubleStruckCapitalN]", FontFamily -> "Times"]


                  enter image description here





                  Update:



                  In addition to that it is worth mentioning PositiveIntegers, NonNegativeIngeters and all family of combinations of sign+domain.



                  So depending on context you can use :nnint: or :pint: for natural numbers:



                  enter image description here



                  Those TemplateBoxes have additional benefit, they have interpretation so while Style["[DoubleStruckCapitalR]", FontFamily -> "Times"] looks nice, :reals: looks nice and represents Reals you can use with symbolic math.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Feb 1 at 20:37

























                  answered Jan 31 at 17:16









                  KubaKuba

                  106k12204526




                  106k12204526























                      5












                      $begingroup$

                      This comes from the pallete.



                      esc dsN esc



                      You can always Bold it with ctrl-b.



                      Change to Traditional form with ctrl-shift-t to get the same as reals.






                      share|improve this answer











                      $endgroup$









                      • 1




                        $begingroup$
                        It does not look like :reals: and friends.
                        $endgroup$
                        – Kuba
                        Jan 31 at 22:06










                      • $begingroup$
                        Are you on a Mac? I'm on Windows and they sure look the same to me when they are both either bold or regular. It really doesn't matter to me what anyone chooses to use.
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 8:23










                      • $begingroup$
                        I am on Windows 10: i.stack.imgur.com/VQ2PX.png
                        $endgroup$
                        – Kuba
                        Feb 1 at 8:29










                      • $begingroup$
                        Wow. I don't have have a site to show you, and I don't know what is going on, but except for the last one which isn't bold, they all look identical to your reals. Its a bracket in front of the R in all cases, not an I with serif. I enlarged the cell to make sure. I just figured it out. Inputform is different, but change to traditional form, it looks like yours.
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 8:47








                      • 1




                        $begingroup$
                        Pretty close. I have Traditional form as my standard output form which I guess is the cause of the confusion. its getting close to 3 am my time so I'm done for awhile
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 9:38
















                      5












                      $begingroup$

                      This comes from the pallete.



                      esc dsN esc



                      You can always Bold it with ctrl-b.



                      Change to Traditional form with ctrl-shift-t to get the same as reals.






                      share|improve this answer











                      $endgroup$









                      • 1




                        $begingroup$
                        It does not look like :reals: and friends.
                        $endgroup$
                        – Kuba
                        Jan 31 at 22:06










                      • $begingroup$
                        Are you on a Mac? I'm on Windows and they sure look the same to me when they are both either bold or regular. It really doesn't matter to me what anyone chooses to use.
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 8:23










                      • $begingroup$
                        I am on Windows 10: i.stack.imgur.com/VQ2PX.png
                        $endgroup$
                        – Kuba
                        Feb 1 at 8:29










                      • $begingroup$
                        Wow. I don't have have a site to show you, and I don't know what is going on, but except for the last one which isn't bold, they all look identical to your reals. Its a bracket in front of the R in all cases, not an I with serif. I enlarged the cell to make sure. I just figured it out. Inputform is different, but change to traditional form, it looks like yours.
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 8:47








                      • 1




                        $begingroup$
                        Pretty close. I have Traditional form as my standard output form which I guess is the cause of the confusion. its getting close to 3 am my time so I'm done for awhile
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 9:38














                      5












                      5








                      5





                      $begingroup$

                      This comes from the pallete.



                      esc dsN esc



                      You can always Bold it with ctrl-b.



                      Change to Traditional form with ctrl-shift-t to get the same as reals.






                      share|improve this answer











                      $endgroup$



                      This comes from the pallete.



                      esc dsN esc



                      You can always Bold it with ctrl-b.



                      Change to Traditional form with ctrl-shift-t to get the same as reals.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Feb 1 at 8:50

























                      answered Jan 31 at 22:04









                      Bill WattsBill Watts

                      3,4411620




                      3,4411620








                      • 1




                        $begingroup$
                        It does not look like :reals: and friends.
                        $endgroup$
                        – Kuba
                        Jan 31 at 22:06










                      • $begingroup$
                        Are you on a Mac? I'm on Windows and they sure look the same to me when they are both either bold or regular. It really doesn't matter to me what anyone chooses to use.
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 8:23










                      • $begingroup$
                        I am on Windows 10: i.stack.imgur.com/VQ2PX.png
                        $endgroup$
                        – Kuba
                        Feb 1 at 8:29










                      • $begingroup$
                        Wow. I don't have have a site to show you, and I don't know what is going on, but except for the last one which isn't bold, they all look identical to your reals. Its a bracket in front of the R in all cases, not an I with serif. I enlarged the cell to make sure. I just figured it out. Inputform is different, but change to traditional form, it looks like yours.
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 8:47








                      • 1




                        $begingroup$
                        Pretty close. I have Traditional form as my standard output form which I guess is the cause of the confusion. its getting close to 3 am my time so I'm done for awhile
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 9:38














                      • 1




                        $begingroup$
                        It does not look like :reals: and friends.
                        $endgroup$
                        – Kuba
                        Jan 31 at 22:06










                      • $begingroup$
                        Are you on a Mac? I'm on Windows and they sure look the same to me when they are both either bold or regular. It really doesn't matter to me what anyone chooses to use.
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 8:23










                      • $begingroup$
                        I am on Windows 10: i.stack.imgur.com/VQ2PX.png
                        $endgroup$
                        – Kuba
                        Feb 1 at 8:29










                      • $begingroup$
                        Wow. I don't have have a site to show you, and I don't know what is going on, but except for the last one which isn't bold, they all look identical to your reals. Its a bracket in front of the R in all cases, not an I with serif. I enlarged the cell to make sure. I just figured it out. Inputform is different, but change to traditional form, it looks like yours.
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 8:47








                      • 1




                        $begingroup$
                        Pretty close. I have Traditional form as my standard output form which I guess is the cause of the confusion. its getting close to 3 am my time so I'm done for awhile
                        $endgroup$
                        – Bill Watts
                        Feb 1 at 9:38








                      1




                      1




                      $begingroup$
                      It does not look like :reals: and friends.
                      $endgroup$
                      – Kuba
                      Jan 31 at 22:06




                      $begingroup$
                      It does not look like :reals: and friends.
                      $endgroup$
                      – Kuba
                      Jan 31 at 22:06












                      $begingroup$
                      Are you on a Mac? I'm on Windows and they sure look the same to me when they are both either bold or regular. It really doesn't matter to me what anyone chooses to use.
                      $endgroup$
                      – Bill Watts
                      Feb 1 at 8:23




                      $begingroup$
                      Are you on a Mac? I'm on Windows and they sure look the same to me when they are both either bold or regular. It really doesn't matter to me what anyone chooses to use.
                      $endgroup$
                      – Bill Watts
                      Feb 1 at 8:23












                      $begingroup$
                      I am on Windows 10: i.stack.imgur.com/VQ2PX.png
                      $endgroup$
                      – Kuba
                      Feb 1 at 8:29




                      $begingroup$
                      I am on Windows 10: i.stack.imgur.com/VQ2PX.png
                      $endgroup$
                      – Kuba
                      Feb 1 at 8:29












                      $begingroup$
                      Wow. I don't have have a site to show you, and I don't know what is going on, but except for the last one which isn't bold, they all look identical to your reals. Its a bracket in front of the R in all cases, not an I with serif. I enlarged the cell to make sure. I just figured it out. Inputform is different, but change to traditional form, it looks like yours.
                      $endgroup$
                      – Bill Watts
                      Feb 1 at 8:47






                      $begingroup$
                      Wow. I don't have have a site to show you, and I don't know what is going on, but except for the last one which isn't bold, they all look identical to your reals. Its a bracket in front of the R in all cases, not an I with serif. I enlarged the cell to make sure. I just figured it out. Inputform is different, but change to traditional form, it looks like yours.
                      $endgroup$
                      – Bill Watts
                      Feb 1 at 8:47






                      1




                      1




                      $begingroup$
                      Pretty close. I have Traditional form as my standard output form which I guess is the cause of the confusion. its getting close to 3 am my time so I'm done for awhile
                      $endgroup$
                      – Bill Watts
                      Feb 1 at 9:38




                      $begingroup$
                      Pretty close. I have Traditional form as my standard output form which I guess is the cause of the confusion. its getting close to 3 am my time so I'm done for awhile
                      $endgroup$
                      – Bill Watts
                      Feb 1 at 9:38











                      3












                      $begingroup$

                      Building on Kuba's solution



                      Here is code for a shortcut




                      escnatsesc




                      CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];


                      enter image description here






                      share|improve this answer









                      $endgroup$


















                        3












                        $begingroup$

                        Building on Kuba's solution



                        Here is code for a shortcut




                        escnatsesc




                        CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];


                        enter image description here






                        share|improve this answer









                        $endgroup$
















                          3












                          3








                          3





                          $begingroup$

                          Building on Kuba's solution



                          Here is code for a shortcut




                          escnatsesc




                          CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];


                          enter image description here






                          share|improve this answer









                          $endgroup$



                          Building on Kuba's solution



                          Here is code for a shortcut




                          escnatsesc




                          CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 1 at 13:56









                          Conor CosnettConor Cosnett

                          3,3121029




                          3,3121029






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Mathematica Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              Use MathJax to format equations. MathJax reference.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f190593%2fwhat-is-a-satisfactory-way-to-typeset-%25e2%2584%2595-in-the-mathematica-notebook%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Probability when a professor distributes a quiz and homework assignment to a class of n students.

                              Aardman Animations

                              Are they similar matrix