Re: [NTG-context] Automatic thousands separation in \unit

2019-02-09 Thread Marco Patzer
On Tue, 5 Feb 2019 12:22:29 +0100 Marco Patzer wrote: > Is there a way to hook the \spaceddigits into \unit somehow? I tried to add \spaceddigits to the \unit command, but it didn't work. If someone has an idea how to do that, I'd greatly appreciate. Marco

Re: [NTG-context] Automatic thousands separation in \unit

2019-02-05 Thread Marco Patzer
On Thu, 31 Jan 2019 13:43:13 +0100 Otared Kavian 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

Re: [NTG-context] Automatic thousands separation in \unit

2019-02-02 Thread Axel Kielhorn
> Am 31.01.2019 um 15:00 schrieb Clyde Johnston : > > Maybe this should be a language specific parameter. How would you achieve a > similar result with the Indian numbering system, for instance? > > Also, decimal and thousands separators vary from country to country. In > France, for

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Hans Ã…berg
> On 31 Jan 2019, at 15:00, Clyde Johnston wrote: > > Maybe this should be a language specific parameter. How would you achieve a > similar result with the Indian numbering system, for instance? It is an additional feature that may or may not be linked to language. For example, in Swedish

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Clyde Johnston
xample, they use the comma for the decimal separator, and space for the thousand separator. Clyde From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Otared Kavian Sent: Thursday, January 31, 2019 2:43 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Aut

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Otared Kavian
Hi Marco, Can this give what you wish? \define[2]\myunit{\spaceddigits{#1}\unit{#2}} \starttext \myunit{123456789}{volt} \stoptext > On 31 Jan 2019, at 13:28, Marco Patzer wrote: > > Hi! > > I'm wondering if there's a way to have automatic thousands separation in the > \unit command?