What is a satisfactory way to typeset ℕ in the Mathematica notebook?
$begingroup$
I am familiar with typing:
escintsesc
escrealsesc
to produce:
(when typing inside a DisplayFormula cell).
How would one typeset a similar looking ℕ ?
I have tried [DoubleStruckCapitalN]
but this produces a different looking result:
(ℕ (an N in "Blackboard Bold" font) is used to refer to the set of all natural numbers.)
formatting
$endgroup$
add a comment |
$begingroup$
I am familiar with typing:
escintsesc
escrealsesc
to produce:
(when typing inside a DisplayFormula cell).
How would one typeset a similar looking ℕ ?
I have tried [DoubleStruckCapitalN]
but this produces a different looking result:
(ℕ (an N in "Blackboard Bold" font) is used to refer to the set of all natural numbers.)
formatting
$endgroup$
add a comment |
$begingroup$
I am familiar with typing:
escintsesc
escrealsesc
to produce:
(when typing inside a DisplayFormula cell).
How would one typeset a similar looking ℕ ?
I have tried [DoubleStruckCapitalN]
but this produces a different looking result:
(ℕ (an N in "Blackboard Bold" font) is used to refer to the set of all natural numbers.)
formatting
$endgroup$
I am familiar with typing:
escintsesc
escrealsesc
to produce:
(when typing inside a DisplayFormula cell).
How would one typeset a similar looking ℕ ?
I have tried [DoubleStruckCapitalN]
but this produces a different looking result:
(ℕ (an N in "Blackboard Bold" font) is used to refer to the set of all natural numbers.)
formatting
formatting
asked Jan 31 at 16:55
Conor CosnettConor Cosnett
3,3121029
3,3121029
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
$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"]
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:
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.
$endgroup$
add a comment |
$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.
$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
|
show 1 more comment
$begingroup$
Building on Kuba's solution
Here is code for a shortcut
escnatsesc
CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];
$endgroup$
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
$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"]
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:
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.
$endgroup$
add a comment |
$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"]
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:
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.
$endgroup$
add a comment |
$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"]
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:
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.
$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"]
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:
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.
edited Feb 1 at 20:37
answered Jan 31 at 17:16
Kuba♦Kuba
106k12204526
106k12204526
add a comment |
add a comment |
$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.
$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
|
show 1 more comment
$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.
$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
|
show 1 more comment
$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.
$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.
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
|
show 1 more comment
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
|
show 1 more comment
$begingroup$
Building on Kuba's solution
Here is code for a shortcut
escnatsesc
CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];
$endgroup$
add a comment |
$begingroup$
Building on Kuba's solution
Here is code for a shortcut
escnatsesc
CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];
$endgroup$
add a comment |
$begingroup$
Building on Kuba's solution
Here is code for a shortcut
escnatsesc
CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];
$endgroup$
Building on Kuba's solution
Here is code for a shortcut
escnatsesc
CurrentValue[$FrontEnd, {InputAliases, "nats"}] = StyleBox["[DoubleStruckCapitalN]", FontFamily -> "Times"];
answered Feb 1 at 13:56
Conor CosnettConor Cosnett
3,3121029
3,3121029
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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