# sets and enclosing braces

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

-
you'll need `\{...\}` to make `TeX` understand that you want to display them –  cmhughes Sep 30 '12 at 14:43
`\$d=\{3, 2, 2, 1, 1, 1\}\$` should do the trick
@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