Typeset sign similar to n choose k, but with curly braces [duplicate]
up vote
3
down vote
favorite
This question already has an answer here:
How to write Stirling numbers of the second kind?
4 answers
Question
I am looking for a way to typeset two variables over each other similar to binom{n}{k}
or {n choose k}
. The only difference is that it should be surrounded in curly braces instead of round ones. Is there a proper way to do it?
My workaround
I've already attempted working around this using the following approach:
documentclass{article}
usepackage{amsmath}
usepackage{mathtools}
begin{document}
This is a text containing
$begin{cases}
begin{rcases}
n \
k\
end{rcases}
end{cases}$,
my mathematical symbol.
My binomial $binom{n}{k}$ for comparison.
end{document}
Unfortunately, it is an ugly workaround. The braces and size of the font are too big, as seen compared to the properly typeset binomial. Additionally, there's a huge amount of space on the right.
math-mode amsmath
New contributor
marked as duplicate by Werner
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
9 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
up vote
3
down vote
favorite
This question already has an answer here:
How to write Stirling numbers of the second kind?
4 answers
Question
I am looking for a way to typeset two variables over each other similar to binom{n}{k}
or {n choose k}
. The only difference is that it should be surrounded in curly braces instead of round ones. Is there a proper way to do it?
My workaround
I've already attempted working around this using the following approach:
documentclass{article}
usepackage{amsmath}
usepackage{mathtools}
begin{document}
This is a text containing
$begin{cases}
begin{rcases}
n \
k\
end{rcases}
end{cases}$,
my mathematical symbol.
My binomial $binom{n}{k}$ for comparison.
end{document}
Unfortunately, it is an ugly workaround. The braces and size of the font are too big, as seen compared to the properly typeset binomial. Additionally, there's a huge amount of space on the right.
math-mode amsmath
New contributor
marked as duplicate by Werner
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
9 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
This question already has an answer here:
How to write Stirling numbers of the second kind?
4 answers
Question
I am looking for a way to typeset two variables over each other similar to binom{n}{k}
or {n choose k}
. The only difference is that it should be surrounded in curly braces instead of round ones. Is there a proper way to do it?
My workaround
I've already attempted working around this using the following approach:
documentclass{article}
usepackage{amsmath}
usepackage{mathtools}
begin{document}
This is a text containing
$begin{cases}
begin{rcases}
n \
k\
end{rcases}
end{cases}$,
my mathematical symbol.
My binomial $binom{n}{k}$ for comparison.
end{document}
Unfortunately, it is an ugly workaround. The braces and size of the font are too big, as seen compared to the properly typeset binomial. Additionally, there's a huge amount of space on the right.
math-mode amsmath
New contributor
This question already has an answer here:
How to write Stirling numbers of the second kind?
4 answers
Question
I am looking for a way to typeset two variables over each other similar to binom{n}{k}
or {n choose k}
. The only difference is that it should be surrounded in curly braces instead of round ones. Is there a proper way to do it?
My workaround
I've already attempted working around this using the following approach:
documentclass{article}
usepackage{amsmath}
usepackage{mathtools}
begin{document}
This is a text containing
$begin{cases}
begin{rcases}
n \
k\
end{rcases}
end{cases}$,
my mathematical symbol.
My binomial $binom{n}{k}$ for comparison.
end{document}
Unfortunately, it is an ugly workaround. The braces and size of the font are too big, as seen compared to the properly typeset binomial. Additionally, there's a huge amount of space on the right.
This question already has an answer here:
How to write Stirling numbers of the second kind?
4 answers
math-mode amsmath
math-mode amsmath
New contributor
New contributor
New contributor
asked 9 hours ago
StckXchnge-nub12
182
182
New contributor
New contributor
marked as duplicate by Werner
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
9 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Werner
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
9 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
You should construct it the same way amsmath
's binom
uses genfrac{<ldelim>}{<rdelim>}{<width>}{<math style>}{<numerator>}{<denominator>}
:
documentclass{article}
usepackage{amsmath}
newcommand{bracenom}{genfrac{lbrace}{rbrace}{0pt}{}}
begin{document}
My binomial $binom{n}{k}$ for comparison with $bracenom{n}{k}$.
end{document}
Leaving the <math style>
empty implies that the current math style will be used. You can also define dbracenom
to use <math style>
= 0
and tbracenom
to use <math style>
= 1
. Here are the similar definitions for binom
-and-friends:
DeclareRobustCommand{binom}{genfrac()z@{}}
newcommand{dbinom}{genfrac(){0pt}0}
newcommand{tbinom}{genfrac(){0pt}1}
<width>
refers to the rule between the <numerator>
and <denominator>
.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You should construct it the same way amsmath
's binom
uses genfrac{<ldelim>}{<rdelim>}{<width>}{<math style>}{<numerator>}{<denominator>}
:
documentclass{article}
usepackage{amsmath}
newcommand{bracenom}{genfrac{lbrace}{rbrace}{0pt}{}}
begin{document}
My binomial $binom{n}{k}$ for comparison with $bracenom{n}{k}$.
end{document}
Leaving the <math style>
empty implies that the current math style will be used. You can also define dbracenom
to use <math style>
= 0
and tbracenom
to use <math style>
= 1
. Here are the similar definitions for binom
-and-friends:
DeclareRobustCommand{binom}{genfrac()z@{}}
newcommand{dbinom}{genfrac(){0pt}0}
newcommand{tbinom}{genfrac(){0pt}1}
<width>
refers to the rule between the <numerator>
and <denominator>
.
add a comment |
up vote
2
down vote
accepted
You should construct it the same way amsmath
's binom
uses genfrac{<ldelim>}{<rdelim>}{<width>}{<math style>}{<numerator>}{<denominator>}
:
documentclass{article}
usepackage{amsmath}
newcommand{bracenom}{genfrac{lbrace}{rbrace}{0pt}{}}
begin{document}
My binomial $binom{n}{k}$ for comparison with $bracenom{n}{k}$.
end{document}
Leaving the <math style>
empty implies that the current math style will be used. You can also define dbracenom
to use <math style>
= 0
and tbracenom
to use <math style>
= 1
. Here are the similar definitions for binom
-and-friends:
DeclareRobustCommand{binom}{genfrac()z@{}}
newcommand{dbinom}{genfrac(){0pt}0}
newcommand{tbinom}{genfrac(){0pt}1}
<width>
refers to the rule between the <numerator>
and <denominator>
.
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You should construct it the same way amsmath
's binom
uses genfrac{<ldelim>}{<rdelim>}{<width>}{<math style>}{<numerator>}{<denominator>}
:
documentclass{article}
usepackage{amsmath}
newcommand{bracenom}{genfrac{lbrace}{rbrace}{0pt}{}}
begin{document}
My binomial $binom{n}{k}$ for comparison with $bracenom{n}{k}$.
end{document}
Leaving the <math style>
empty implies that the current math style will be used. You can also define dbracenom
to use <math style>
= 0
and tbracenom
to use <math style>
= 1
. Here are the similar definitions for binom
-and-friends:
DeclareRobustCommand{binom}{genfrac()z@{}}
newcommand{dbinom}{genfrac(){0pt}0}
newcommand{tbinom}{genfrac(){0pt}1}
<width>
refers to the rule between the <numerator>
and <denominator>
.
You should construct it the same way amsmath
's binom
uses genfrac{<ldelim>}{<rdelim>}{<width>}{<math style>}{<numerator>}{<denominator>}
:
documentclass{article}
usepackage{amsmath}
newcommand{bracenom}{genfrac{lbrace}{rbrace}{0pt}{}}
begin{document}
My binomial $binom{n}{k}$ for comparison with $bracenom{n}{k}$.
end{document}
Leaving the <math style>
empty implies that the current math style will be used. You can also define dbracenom
to use <math style>
= 0
and tbracenom
to use <math style>
= 1
. Here are the similar definitions for binom
-and-friends:
DeclareRobustCommand{binom}{genfrac()z@{}}
newcommand{dbinom}{genfrac(){0pt}0}
newcommand{tbinom}{genfrac(){0pt}1}
<width>
refers to the rule between the <numerator>
and <denominator>
.
answered 9 hours ago
Werner
432k609511632
432k609511632
add a comment |
add a comment |