[NTG-context] Automatic thousands separation in \unit

Marco Patzer lists at homerow.info
Tue Feb 5 12:22:29 CET 2019


On Thu, 31 Jan 2019 13:43:13 +0100
Otared Kavian <otared at gmail.com> wrote:

Sorry for the late response.

> Can this give what you wish?
> 
> \define[2]\myunit{\spaceddigits{#1}\unit{#2}}
> \starttext 
> \myunit{123456789}{volt}
> \stoptext

That's a way to solve it, yes. But I'd prefer it to be integrated
into the \unit command. It looks cleaner and I don't have to modify
the sources to use a different command.

Is there a way to hook the \spaceddigits into \unit somehow?

Marco


More information about the ntg-context mailing list