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?

1 Answer 1


Numbers can be formatted with package siunitx:




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

  • Is there a way I can do this without manually typing \num prior to each number? Jun 27, 2014 at 4:53
  • 2
    @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}{...}{...}, ...) Jun 27, 2014 at 5:18
  • 3
    @Clarinetist: In some contexts (like a tabular, in a number-only column, say), yes. In general, not really.
    – Werner
    Jun 27, 2014 at 5:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.