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.

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

I would like to know if the siunitx package offers the possibility of adding an adjective after the unit, to get a hyphenated compound adjective.

For instance, when typesetting "a 10 km-long road", I would like to pass the adjective as an optional argument to \SI{1}{\kilo\meter}, as in \SI[[adj=long]{1}{\kilo\meter}, instead of having to type \SI{1}{\kilo\meter}-long.

Please understand that there is nothing wrong with the \SI{1}{\kilo\meter}-long syntax. It just "feels" wrong to hyphenate a command with a word. Also, I think this would make corrections a bit more straightforward.

If this functionality is not offered, is it something the author of the package has thought of or is planning to implement?

share|improve this question
What is wrong with \SI{1}{\kilo\meter}-long? – Qrrbrbirlbel Oct 1 '12 at 14:58
Almost certainly not the best way to write this: I would go for words in the example given. – Joseph Wright Oct 1 '12 at 15:05
Such a construction is typical in English, but it's completely extraneous to other languages such as Italian and French. – egreg Oct 1 '12 at 15:05
@Qrrbrbirlbel The only thing wrong with \SI{1}{\kilo\meter}-long is that you're hyphenating the command with a word. It just feels like bad practice. I edited my question accordingly. – Kpantzas Oct 1 '12 at 15:06
ISO 80000-1 sec. 7.2.1 says "any attachment to a unit symbol as a means of giving information about the special nature of the quantity or context of measurement under consideration is not permitted". So, I could be wrong, but I think you shoudn't attach anything to a unit symbol by means of a hyphen. There is an example here (physics.nist.gov/cuu/pdf/sp811.pdf) where the term "long" is not attached to the unit symbol. – Luigi Oct 1 '12 at 16:29

You could define your own macro:


and use it as


If you want to prevent hypenations use



share|improve this answer

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.