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.

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
add comment

1 Answer

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
2  
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
add comment

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.