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

Is there a package I could use to insert a space instead of a comma for large numbers?

For example,

12 345.67

instead of


If needed, I am using the extbook environment. All of my numbers are in math mode.

Edit: Is there a way I can do this formatting without having to type in num (from siunitx) for every single number?

share|improve this question
up vote 8 down vote accepted

Numbers can be formatted with package siunitx:




The space can be configured via option group-separator. Its default is a small space (\,).

share|improve this answer
Is there a way I can do this without manually typing \num prior to each number? – Clarinetist Jun 27 '14 at 4:53
@Clarinetist: Package siunitx provides column type S for numbers inside tables. Otherwise digits would have to be made active. This cannot be done without breaking many other things, because numbers are used in many circumstances (\hspace{2em}, \multicolumn{4}{...}{...}, ...) – Heiko Oberdiek Jun 27 '14 at 5:18
@Clarinetist: In some contexts (like a tabular, in a number-only column, say), yes. In general, not really. – Werner Jun 27 '14 at 5:18

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.