Missing space between digit and unit with the new unit-command
Hey, I was happy to have a new (and easier) unit-command, but now I miss the space that was between the digits and the unit in the unit-module. I attach the old (unit1) and new variant (unit2) with tex- and pdf-files. Do I type it in a wrong way or is it possible to fix this? Thanks, Yoraxe
Am 30.06.2011 um 14:52 schrieb yoraxe:
Hey,
I was happy to have a new (and easier) unit-command, but now I miss the space that was between the digits and the unit in the unit-module.
Put the number in the argument of the command. \starttext \unit{35 kilogram cubic meter} \stoptext @Hans: Can you add a option to replace \cdot with \thinspace, e.g. unitseparator=small|medium|...|cdot Wolfgang
Am 30.06.2011 22:43, schrieb Wolfgang Schuster:
Am 30.06.2011 um 14:52 schrieb yoraxe:
Hey,
I was happy to have a new (and easier) unit-command, but now I miss the space that was between the digits and the unit in the unit-module.
Put the number in the argument of the command.
\starttext \unit{35 kilogram cubic meter} \stoptext
Ok, thanks, for this minimal example it works. But what do I have to type instead of \unit{10^{-3} kilogram cubic meter} (or \unit{10^{-3} kgm²} ) ? This does not work for me.
Am 01.07.2011 um 00:33 schrieb yoraxe:
Ok, thanks, for this minimal example it works. But what do I have to type instead of
\unit{10^{-3} kilogram cubic meter}
(or \unit{10^{-3} kgm²} )
? This does not work for me.
It’s “10e-3”, you can find a list a valid input in the manual [1] for the \digits commands which is now included in \unit. [1] http://www.pragma-ade.com/general/magazines/mag-0003.pdf Wolfgang
Am 01.07.2011 08:15, schrieb Wolfgang Schuster:
Am 01.07.2011 um 00:33 schrieb yoraxe:
Ok, thanks, for this minimal example it works. But what do I have to type instead of
\unit{10^{-3} kilogram cubic meter}
(or \unit{10^{-3} kgm²} )
? This does not work for me.
It’s “10e-3”, you can find a list a valid input in the manual [1] for the \digits commands which is now included in \unit.
[1] http://www.pragma-ade.com/general/magazines/mag-0003.pdf
Thanks a lot. Most programms (also the old digit-module) interpret “35e-3” as “35\cdot 10^{-3}” but the new unit-command only sets the “^{-3}“ after the number without “10·“. That's why I was confused. =D Yoraxe
On 30-6-2011 10:43, Wolfgang Schuster wrote:
Am 30.06.2011 um 14:52 schrieb yoraxe:
Hey,
I was happy to have a new (and easier) unit-command, but now I miss the space that was between the digits and the unit in the unit-module.
Put the number in the argument of the command.
\starttext \unit{35 kilogram cubic meter} \stoptext
@Hans: Can you add a option to replace \cdot with \thinspace, e.g. unitseparator=small|medium|...|cdot
ok, we will have (normal=>cdot): \starttext \unit{35 kilogram cubic meter} \setupunits[unit][separator=small] \unit{35 kilogram cubic meter} \setupunits[unit][separator=none] \unit{35 kilogram cubic meter} \stoptext (plus a low level installer) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Wolfgang Schuster
-
yoraxe