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.










share|improve this question







New contributor




StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











marked as duplicate by Werner math-mode
Users with the  math-mode badge can single-handedly close math-mode questions as duplicates and reopen them as needed.

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.



















    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.










    share|improve this question







    New contributor




    StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.











    marked as duplicate by Werner math-mode
    Users with the  math-mode badge can single-handedly close math-mode questions as duplicates and reopen them as needed.

    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.

















      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.










      share|improve this question







      New contributor




      StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      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






      share|improve this question







      New contributor




      StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 9 hours ago









      StckXchnge-nub12

      182




      182




      New contributor




      StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      StckXchnge-nub12 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      marked as duplicate by Werner math-mode
      Users with the  math-mode badge can single-handedly close math-mode questions as duplicates and reopen them as needed.

      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 math-mode
      Users with the  math-mode badge can single-handedly close math-mode questions as duplicates and reopen them as needed.

      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.
























          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>}:



          enter image description here



          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>.






          share|improve this answer




























            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>}:



            enter image description here



            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>.






            share|improve this answer

























              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>}:



              enter image description here



              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>.






              share|improve this answer























                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>}:



                enter image description here



                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>.






                share|improve this answer












                You should construct it the same way amsmath's binom uses genfrac{<ldelim>}{<rdelim>}{<width>}{<math style>}{<numerator>}{<denominator>}:



                enter image description here



                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>.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 9 hours ago









                Werner

                432k609511632




                432k609511632















                    Popular posts from this blog

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt