TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
you'll need \{...\} to make TeX understand that you want to display them – cmhughes Sep 30 '12 at 14:43
up vote 9 down vote accepted

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

share|improve this answer
ahhhh. I tried the escaping in the wrong places... – CodeKingPlusPlus Sep 30 '12 at 14:44
@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 posting your answer, you agree to the privacy policy and terms of service.

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