1

I know how to declare a unit using siunitx

\DeclareSIUnit[number-unit-product = \,]\hello{hello}

which just gives the written text hello. I also can combine it with the usual syntax like

\DeclareSIUnit[number-unit-product = \,]\hello{\milli hello}

but how can I write a number inside a newly defined unit?

\DeclareSIUnit[number-unit-product = \,]\hello{1e6 hello}

for example?

egreg
  • 1,121,712
Diger
  • 573
  • Look at the syntax on a random google result: http://tex.stackexchange.com/questions/56051/problem-with-options-in-declaresiunit – hpekristiansen Feb 16 '17 at 17:12
  • It's not really clear what's the expected output from, say, \SI{2}{\hello} – egreg Feb 16 '17 at 17:25
  • Sorry but managed: I meant sth like this: \DeclareSIUnit[number-unit-product = ,] \test{\num[retain-unity-mantissa = false]{1e4}\per\centi\metre\cubed} – Diger Feb 16 '17 at 17:27
  • Voting to close as OP indicates that the problem was solved in the comments. – hpekristiansen Mar 12 '17 at 03:50

0 Answers0