[NTG-context] digits / units setup

2024-08-24 Thread Henning Hraban Ramm
According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though. Hraban ___ If your que

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-22 Thread Romain Diss
Le mercredi 22 mai 2013, Hans Hagen a écrit : > On 5/21/2013 11:35 PM, Romain Diss wrote: > >> We've already got \setdigitmode, \setdigitorder, and \setdigitspace; > >> it might make sense to create a \setupdigits to consolidate these > >> setups into one interface. Something like this: > >> > >>

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-22 Thread Hans Hagen
On 5/21/2013 11:35 PM, Romain Diss wrote: We've already got \setdigitmode, \setdigitorder, and \setdigitspace; it might make sense to create a \setupdigits to consolidate these setups into one interface. Something like this: \setupdigits [mode=4, % -->\setdigitmode{4}

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Romain Diss
> We've already got \setdigitmode, \setdigitorder, and \setdigitspace; > it might make sense to create a \setupdigits to consolidate these > setups into one interface. Something like this: > > \setupdigits >[mode=4, % -->\setdigitmode{4} > % (decimal per

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Sietse Brouwer
Hi Hans, Christian Prim wrote: >>> >>> is it possible to change the behaviour of \digits to have \cdot [...] >>> instead of \times [...]? Hans wrote: > there are several ways we can deal with this: [...] > or maybe a key/value in setuptimes .. not sure yet We've already got \setdigitmode, \setdi

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Christian Prim
Now it's perfect! Will this be included in the next version of context? Christian 2013/5/21 Hans Hagen > On 5/21/2013 5:15 PM, Christian Prim wrote: > >> Thanks for the tip Hans, >> >> but the kerning in >> \def\digitstimessymbol{\kern._**_2\emwidth\cdot\kern.2\**emwidth} should >> not >> >> t

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Hans Hagen
On 5/21/2013 5:15 PM, Christian Prim wrote: Thanks for the tip Hans, but the kerning in \def\digitstimessymbol{\kern.__2\emwidth\cdot\kern.2\emwidth} should not take place in mathmode, only in textmode. Else the space is too big. Don't know how to deal with that. \def\digitstimessymbol{\mathor

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Christian Prim
Thanks for the tip Hans, but the kerning in \def\digitstimessymbol{\kern.**2\emwidth\cdot\kern.2\emwidth} should not take place in mathmode, only in textmode. Else the space is too big. Don't know how to deal with that. Christian 2013/5/21 Hans Hagen > On 5/21/2013 11:44 AM, Romain Diss wrote

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Hans Hagen
On 5/21/2013 11:44 AM, Romain Diss wrote: Le lundi 20 mai 2013, Christian Prim a écrit : is it possible to change the behaviour of \digits to have \cdot as in http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at the bottom) instead of \times as shown in the latest units-mkiv

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Romain Diss
Le lundi 20 mai 2013, Christian Prim a écrit : > is it possible to change the behaviour of \digits to have \cdot as in > http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at > the bottom) instead of \times as shown in the latest units-mkiv-document > http://www.pragma-ade.com/g

[NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Christian Prim
Hi, is it possible to change the behaviour of \digits to have \cdot as in http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at the bottom) instead of \times as shown in the latest units-mkiv-document http://www.pragma-ade.com/general/manuals/units-mkiv.pdf pages 6&7? Thanks f

Re: [NTG-context] Digits and exponents

2011-08-10 Thread Ian Lawrence
A complete example: \starttext {\em digit exponent powers - don't work} \digits{20^-12} \digits 123.222,00^10 \digits 123.222,00e10 \stoptext On 10 Aug 2011, at 08:57, Ian Lawrence wrote: > Morning all, > > I am trying to get together something for expressing physics appropriately > an

[NTG-context] Digits and exponents

2011-08-10 Thread Ian Lawrence
Morning all, I am trying to get together something for expressing physics appropriately and precisely. The \units and \lunits command and I are becoming better acquainted, but now I ma having grief with with the \digits{}. In particular, exponents don't seem to function as documented in the 'm

Re: [NTG-context] Digits-Module in tabulate does not work

2011-06-12 Thread yoraxe
Am 09.06.2011 23:16, schrieb Wolfgang Schuster: >> I guess the \pm has to be in $$. If I type >> >> \NN (30$\pm$3)e-3 >> >> there's 'e-3' in the pdf-file again. The \NN somewhere between the digit >> only creates a big space (new column). >> >> Sorry for being so slow on the uptake. > > The \NN co

Re: [NTG-context] Digits-Module in tabulate does not work

2011-06-09 Thread Wolfgang Schuster
Am 09.06.2011 um 23:00 schrieb yoraxe: > Thanks. That was very easy. But where do I have to put the \NN when I use > something like > > (30 \pm 3)e-3 > > ? The \NN command is place of the \NC command and adding another one will only start a new column. > I guess the \pm has to be in $$. If

Re: [NTG-context] Digits-Module in tabulate does not work

2011-06-09 Thread yoraxe
Am 09.06.2011 22:31, schrieb Wolfgang Schuster: > Am 09.06.2011 um 22:24 schrieb yoraxe: > > >> Hi, >> >> I'm using the digit-module and enjoy, that I get a nice output using the >> following: >> >> \starttext >> \digits{30e-3} >> \stoptext >> >> instead of >> >> \starttext >> $30 \cdot 10^{-3}$

Re: [NTG-context] Digits-Module in tabulate does not work

2011-06-09 Thread Wolfgang Schuster
Am 09.06.2011 um 22:24 schrieb yoraxe: > Hi, > > I'm using the digit-module and enjoy, that I get a nice output using the > following: > > \starttext > \digits{30e-3} > \stoptext > > instead of > > \starttext > $30 \cdot 10^{-3}$ or $30 ⋅ 10^{-3}$ > \stoptext > > But now I'm wondering why th

[NTG-context] Digits-Module in tabulate does not work

2011-06-09 Thread yoraxe
Hi, I'm using the digit-module and enjoy, that I get a nice output using the following: \starttext \digits{30e-3} \stoptext instead of \starttext $30 \cdot 10^{-3}$ or $30 ⋅ 10^{-3}$ \stoptext But now I'm wondering why this module does not work in the tabulate-environment with: \starttabulate

Re: [NTG-context] \digits

2009-02-24 Thread Hans Hagen
Taco Hoekwater wrote: Wolfgang Schuster wrote: On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster wrote: Hi, the \digits command cause a error message with the last beta in MkIV. This took much more longer than it should. In supp-num.tex, there is this definition: \def\dohandledigits {\m

Re: [NTG-context] \digits

2009-02-24 Thread Taco Hoekwater
Wolfgang Schuster wrote: On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster wrote: Hi, the \digits command cause a error message with the last beta in MkIV. This took much more longer than it should. In supp-num.tex, there is this definition: \def\dohandledigits {\mathcode`\,="013B \mathc

[NTG-context] \digits

2009-02-24 Thread Wolfgang Schuster
On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster wrote: > Hi, > > the \digits command cause a error message with the last beta in MkIV. > > > % engine=luatex > \starttext > \digits{1.000} > \stoptext > > > ! \textfont 1 is undefined (character :). > \mathematics #1->\relax \ifmmode #1\else $#1$

Re: [NTG-context] \digits

2003-09-01 Thread Hans Hagen
At 19:59 29/08/2003 +0200, you wrote: Hello, while browsing the source, I came across the very nice \digits macro. But I have some comments: In my opinion some characters don't look right \starttext \digits 123.222,= % short, OK \digits 123.222,== % should be em dash (?) \digits +123.222

Re: [NTG-context] \digits

2003-08-31 Thread Hans Hagen
At 19:59 29/08/2003 +0200, you wrote: Hello, while browsing the source, I came across the very nice \digits macro. But I have some comments: In my opinion some characters don't look right \starttext \digits 123.222,= % short, OK \digits 123.222,== % should be em dash (?) \digits +123.222

[NTG-context] \digits

2003-08-29 Thread Patrick Gundlach
Hello, while browsing the source, I came across the very nice \digits macro. But I have some comments: In my opinion some characters don't look right \starttext \digits 123.222,= % short, OK \digits 123.222,== % should be em dash (?) \digits +123.222,22% OK \digits -123.222,33