8

After starting to use the siunitx package for typesetting units (and the numerals before the units) in LaTeX, I noticed that it typesets a single space between a numeral and a unit (a space that is not as wide as a normal space). I have tried unsuccessfully to find a proper reference that calls for this. Wikipedia mentions it on Space (punctuation), but the external reference given on the Wikipedia page, which is in this online .pdf brochure, does not say anything about thin spaces. It only mentions that there should be a space between numerals and units, but says nothing about the size of that space (in which case I think it is reasonable to assume that a normal space is referred to). I have added a question about this in the talk section for the Space article.

What is the proper size of spaces between numerals and units? It would be interesting to know the source for the usage of thin spaces in siunitx, and if that is the way it "really should be".

6
  • 2
    I'm going to say this question really is nothing to do with the English language. It's a book design question. Try Graphic Design. Thanks.
    – MetaEd
    Feb 28, 2013 at 6:24
  • @MετάEd But we get questions of whether to use French spacing in English, and take them.
    – tchrist
    Feb 28, 2013 at 12:53
  • I can't say every spacing question is off topic: surely some spacing issues are syntactic and on topic. But this question is nothing to do with syntax and everything to do with graphic design.
    – MetaEd
    Feb 28, 2013 at 13:12
  • @MετάEd We seem to take question abouts whether em dashes should be unspaced, spaced, or thin-spaced.
    – tchrist
    Mar 1, 2013 at 0:35
  • I was unsure of which one to choose, having this one, Graphic Design and Tex - LaTeX as possibilities. The question is not about making it look nice, but rather about what is considered correct use of different space lengths for written English language according to standardizing bodies (like BIPM). If those of you who know these fora better than I do think that it should be moved, that is fine by me. Otherwise (or if it is not possible to move questions) I will just wait a bit to see if I get an answer here, and if not I will just re-post the question elsewhere.
    – hjb981
    Mar 1, 2013 at 1:41

3 Answers 3

4

As I understand the official SI manual (which siunitix is supposed to follow), there should be a space, not a thin space, between the number and the unit:

The numerical value always precedes the unit, and a space is always used to separate the unit from the number. (section 5.3.3)

I also find that this seems to be the more common procedure in typed texts (but that might again be because most people don't know abut the thin space).

Just to be clear, the SI manual is aware of the thin space, cf. the following section 5.3.4:

Following the 9th CGPM (1948, Resolution 7) and the 22nd CGPM (2003, Resolution 10), for numbers with many digits the digits may be divided into groups of three by a thin space, in order to facilitate reading.

And precisely for this reason, the siunitix package has since this question was asked changed its setting from using a thin space to using a normal space, see this update.

2
  • 2
    siunitx has reverted this change: github.com/josephwright/siunitx/commit/…, so it is back at a thin space now. however i couldn't find any explanation for that.
    – karyon
    Dec 8, 2016 at 10:30
  • The current 9th edition of the SI brochure states: 5.4.3 Formatting the value of a quantity The numerical value always precedes the unit and a space is always used to separate the unit from the number. Thus the value of the quantity is the product of the number and the unit. The space between the number and the unit is regarded as a multiplication sign (just as a space between units implies multiplication). The only exceptions […], so I think the major point here is the multiplication, and the same typographic rules to indicate a multiplication may be applied, e.g. using a thin space.
    – cx05
    May 16 at 14:41
7

You can use either of U+202F NARROW NO-BREAK SPACE or just plain U+00A0 NO-BREAK SPACE, but you certainly should not let it risk being line-broken. I’m not so sure that the thinness matters half so much as the no-break property. You do not want to let the figures get orphaned without their units.

1
  • The narrow space introduced by siunitx (can also be used anywhere in LaTeX with the command \,) is non-breaking. Before using siunitx, I used the regular non-breaking space (\~).
    – hjb981
    Feb 27, 2013 at 23:41
1

This is an excellent English language question. On the theory that however D. Knuth did it is correct, turn to page 113 of the TeXbook, which contains the following source.

  The notation |b=|^|*| and
  |c=*| on the final line means that $b$ and~$c$ are infinite; the total
  height of $553\pt$ cannot be reduced to $528\pt$ by shrinking the
  available glue. Therefore the page is ejected at the best previous place,
  which turns out to be a pretty good break: |b=5| and |p=-100| yield a
  net cost of $-95$.

You'll see that he writes "553 pt" in math mode with no space between the number and the macro \pt. \pt is defined as follows:

\def\pt{\,{\rm pt}} % units of points, in math formulas

\, is equivalent to \mskip \thinmuskip, which means to insert math mode kerning equal to \thinmuskip, which is defined as 3 mu (= 1/6 em, no stretching or shrinking permitted). The macro \thinspace (used outside of math mode) inserts 1/6 em of kerning as well.

Line breaks are generally avoided in in-line math formulas, so this means that the space will be non-breaking.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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