LaTeX Tip For Using Colon In Math Mode

The other day, I stumbled across a LaTeX tip over at John Cook’s TeX and Typography feed. For some reason, WordPress won’t let me embed it, so here it is.

The Tweet is about why you should use \colon instead of : in certain Math situations.
You can click on the Tweet to see the a couple of examples but here the first:

f: X \to Y \(f: X \to Y\)
f\colon X \to Y \(f\colon X \to Y\)

As you can see, in the first line the colon has equal spacing on both sides and doesn’t look quite right while in the second it’s flush up against the \(f\) with space on the right.

This might seem overly technical but if you’re trying to make your rendered mathematics look as nice as possible, it’s a technique worth knowing. I’m posting about this because I hadn’t seen it before.

This entry was posted in General and tagged . Bookmark the permalink.