Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
6  
you'll need \{...\} to make TeX understand that you want to display them –  cmhughes Sep 30 '12 at 14:43

1 Answer 1

up vote 7 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
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

 
discard

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.