4

In the rules of typography for my language there is a rule, that units (only units, not numbers) should be displayed in different font than the rest of the text. E.g. if all of the text has serif font, units should be in sans serif font. It is pretty unclear from the manual if something like that could be achieved.

Also (this is perhaps breaking the rules, but it is waste of time and space post two so similar questions separately): siunitx displays \SI{0.5}{\per\s} as 0.5/s. This is wrong, ISO 80000 requires displaying 0.5 s$^{-1}$. I would like to have {\m\per\s} displayed as m/s and {\per\s} as s$^{-1}$. Is that possible?

Thanks for help.

  • 3
    Just for information: what language is it? This rule seems quite peculiar. – egreg Sep 30 '13 at 21:39
  • Slovenian. I was told so by my proofreader. – Pygmalion Sep 30 '13 at 21:41
  • 1
    Did you see it in some book? Can you point to some source? – egreg Sep 30 '13 at 21:42
  • 1
    The second question is readily solved: \sisetup{per-mode=reciprocal} which is the default, by the way. If you want generally per-mode=symbol, you can locally change the option: \SI[per-mode=reciprocal]{2}{\per\s} or, more simply, \SI{2}{s^{-1}} – egreg Sep 30 '13 at 21:48
  • 1
    OK, now I consulted ISO 80000 and it requires Roman fonts for both numbers and units. Damn linguists. – Pygmalion Sep 30 '13 at 21:51

Your Answer

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

Browse other questions tagged or ask your own question.