10

How can I denote a set of numbers with curly braces around them (curly braces are usually the standard for sets in mathematical textbooks). I tried the following:

$d={3, 2, 2, 1, 1, 1}$

Tex rendered the text without the curly braces

  • 6
    you'll need \{...\} to make TeX understand that you want to display them – cmhughes Sep 30 '12 at 14:43
14

$d=\{3, 2, 2, 1, 1, 1\}$ should do the trick

  • ahhhh. I tried the escaping in the wrong places... – CodeKingPlusPlus Sep 30 '12 at 14:44
  • 2
    @CodeKingPlusPlus depending on your preference, $d=\{\,3,2,2,1,1,1\,\}$ can also be used to adjust the spacing a bit. – Scott H. Sep 30 '12 at 18:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.