Tell me more ×
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 know that \: in LaTeX produces a space when rendered.

Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find.

share|improve this question

migrated from stackoverflow.com Sep 27 '12 at 13:49

1 Answer

up vote 26 down vote accepted

There are a number of horizontal spacing macros for LaTeX:

  1. \, inserts a \thinspace (equivalent to .16667em) in text mode, or \thinmuskip (equivalent to 3mu) in math mode;
  2. \! inserts a negative \thinmuskip in math mode;
  3. \> inserts \medmuskip (equivalent to 4.0mu plus 2.0mu minus 4.0mu) in math mode;
  4. \; inserts \thickmuskip (equivalent to 5.0mu plus 5.0mu) in math mode;
  5. \: is equivalent to \> (see above);
  6. \enspace inserts a space of .5em in text or math mode;
  7. \quad inserts a space of 1em in text or math mode;
  8. \qquad inserts a space of 2em in text or math mode;
  9. \hspace{<len>} inserts a space of length <len> in math or text mode; and
  10. \hphantom{<stuff>} inserts space of length equivalent to <stuff> in math or text mode. Should be \protected when used in fragile commands (like \caption and sectional headings).

Your usage should work in math mode, so try $\:$.

share|improve this answer
thanks for the good reference. – think123 Sep 25 '12 at 1:25
May I add \hfil and \hfill – deshmukh Oct 10 '12 at 6:13
@deshmukh: Sure! – Werner Oct 10 '12 at 6:14

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.