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?

closed as unclear what you're asking by hpekristiansen, user31729, Andrew Swann, CarLaTeX, Zarko Mar 12 '17 at 10:14

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Look at the syntax on a random google result: tex.stackexchange.com/questions/56051/… – 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 3:50

Browse other questions tagged or ask your own question.