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

I want to have a set of tuples spaced with ":". I tried the following:

$\{1:1, 1:0, 0:1, 2:1, 1:2, 2:2\}$

but in the output, there is a space between the number and the colon. How can I get rid of that?

share|improve this question
up vote 4 down vote accepted

write it this way:

$\{1{:}1, 1{:}0, 0{:}1, 2{:}1, 1{:}2, 2{:}2\}$

or redefine the meaning of : if you do not need it otherwise in math mode

share|improve this answer
That is the correct answer, but it could have been made even better by pointing out that what happens here is that the colon in math mode is considered a relation, hence the space. While surrounding it with braces forces it to become an ordinary symbol. (Learn about mathcodes to understand this in more detail.) There is also the control sequence \colon which typesets a colon as a punctuation character, which yields a space after but not before it. – Harald Hanche-Olsen Jun 14 '11 at 13:13

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.