What is the purpose of $:$
?
We know that in math mode one should write in natural language and not being so strict with math notation.
For example: $f:A\to B$
is not "correct", the correct way would be $f\colon A\to B$
(and variants).
I do not remember any math book that uses the colon as part of a sentence in math mode.
The only 2 uses I can give to $:$
are when learning about divisions ($2:4=1:2$
) and scales ($1:2$
).
Does (La)TeX give a meaning of :
in math mode?
Best Answer
The
:
is a relational symbol in TeX. In the TeXbook it is used in conjunction with=
.In the comments, egreg pointed out another example in the TeXbook, where
:
is used to separate the condition from the set variable.The colon has the exact same meaning in Plain TeX and LaTeX, as can be verified using this simple document:
The output is
Here the same table rendered in LaTeX: