Awhile ago I discovered the siunitx package as an answer to this question and it kind of blew my mind. For instance, if I'm using fp to compute a numerical result (in, say, a homework solution), then I can do the following:
\usepackage{siunitx}
\sisetup{exponent-product = \times,round-mode = figures,%
round-precision = 3, scientific-notation = engineering}
\def\mass{1700}
\def\velocity{29}
\FPmul\Ek{0.5}\mass
\FPmul\Ek\Ek\velocity
\FPmul\Ek\Ek\velocity
\SI{\Ek}{\joule}
To get "715 x 10^3 J", properly typeset.
This is swell, and the tabular stuff is especially powerful.
But it is not really what I want as engineering notation-- that would be "715 kJ". I know siunitx knows the metric prefixes, but I can't find anything in the documentation that will get it to use them automatically (i.e. without me saying \kilo in the \SI statement).
Am I missing a key option, or is this not something the package does? And can anyone suggest a work-around?
siunitxcan do this, and I think it would be pretty hard to implement, because it's not as simple as replacing10^3withk, but the exponent of the units would have to be taken into account as well: If you have1000 m^2, that would be0.001 km^2. I'd be really interested in a solution for this. – Jake Oct 27 '11 at 21:19\pgfmathprintnumberfor PGF to support something like this or to Joseph Wright, the maintainer ofsinunitx. – Martin Scharrer Oct 27 '11 at 22:25mormm,MPaorPa. Usually, in each problem, there is a widely accepted convention for units. If you need to typeset something differently, you can always do it manually. – pmav99 Oct 28 '11 at 07:13siunitx. Assuming this works for users, I will add the appropriate information as an answer when the new version is released to CTAN. – Joseph Wright Nov 06 '11 at 22:53