The question Why use a package to typeset units? made me think about something else: In non-scientific context one may have to provide data for persons using ... imperial units (shiver). But there may be two versions of a report, or the desire to put a secondary unit in parentheses following the primary unit value. Is there any package that treats this? So I'd write something like
$\SI{5}{\m/\s}$
And the output could be chosen to be any of e.g.
5 m/s
5 m/s (11.18 mph)
11.18 mph (18 km/h)
depending on a definition in the preamble?
meter
is compared with the imperial unitmiles
. You should do\SI{5}{\length/\time}
to conform to some kind of consistency. Furthermore, doing\let\length\m
or\let\length\miles
is probably what you need? (there might be something that should be handled correctly in terms of siunitx). And then some wrapper on\SI
\m
was not always meters which was troubling me).\let
s would have the wrapped\SI
decide in which actual unit to display. It's a good idea, though that would not provide an intuitive way for the optional parentheses.