24 Nov
2012
24 Nov
'12
8:50 a.m.
being quite happy with things like \unit{10 km/h}, once I did \unit{45 min}, only to get "45 m" in the resulting file. I suspect that \unit does not know about minutes; is there any way to teach it;)? One can add units with \registerunit[unit] and \setupunittext (see line 652 in
Hi,
Le vendredi 23 novembre 2012, Marcin Borkowski a écrit :
phys-dim.mkiv):
\starttext
\registerunit
[unit]
[minute=minute]
\setupunittext
[minute=min]
\unit{45 minute}
\stoptext
However, I'm unable to explain what exactly \registerunit or \setupunittext
does.
--
Romain Diss