Re: [NTG-context] Possible bug in \unit

2011-12-09 Thread Hans Hagen
On 9-12-2011 22:01, Marco wrote: On 2011-12-09 Hans Hagen wrote: On 9-12-2011 20:41, Marco wrote: One feature request: Could it be make configurable to either insert a \times or a \cdot? is already possible How? http://www.pragma-ade.com/general/manuals/units-mkiv.pdf --

Re: [NTG-context] Possible bug in \unit

2011-12-09 Thread Marco
On 2011-12-09 Hans Hagen wrote: > On 9-12-2011 20:41, Marco wrote: > > > One feature request: Could it be make configurable to > > either insert a \times or a \cdot? > > is already possible How? ___ If your

Re: [NTG-context] Possible bug in \unit

2011-12-09 Thread Hans Hagen
On 9-12-2011 20:41, Marco wrote: One feature request: Could it be make configurable to either insert a \times or a \cdot? is already possible - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Possible bug in \unit

2011-12-09 Thread Marco
On 2011-12-09 Hans Hagen wrote: > > \unit{3.4e-5} yields to 3.4⁻⁵ that's expected according to > > the manual. But how to get 3.4·10⁻⁵ (either with \cot or > > \times)? > > indeed .. here's the fix > > \unexpanded\def\digitspower#1% >{\times10\digits_raised{#1}} > > \unexpanded\def\digit

Re: [NTG-context] Possible bug in \unit

2011-12-09 Thread Hans Hagen
On 7-12-2011 22:27, Marco wrote: There seems to be a bug in the new unit system for \unit{kbit}: % bit \unit{kilo bit} % kbit \unit{kilobit} % kbit \unit{kbit} % kB, shouldn't this be kbit? Another thing: \unit{3.4e-5} yields to 3.4⁻⁵ that's expected according to the manual. But how t

Re: [NTG-context] Possible bug in \unit

2011-12-08 Thread Ian Lawrence
I solved this = getting what I wanted by writing my own macro: \define[3]\physicalquantitye{\hbox{#1 \times \unit{10^#2 #3}}} % \physicalquantitye{number}{exponent}{unit} -- gives short form of unit That makes sense to me and is working fine. There are a few more like this on the wiki (units

Re: [NTG-context] Possible bug in \unit

2011-12-07 Thread Mikael P. Sundqvist
On Thu, Dec 8, 2011 at 12:20 AM, Mojca Miklavec wrote: > On Thu, Dec 8, 2011 at 00:12, Marco wrote: >> On 2011-12-07 Mojca Miklavec wrote: >> >>> > \unit{3.4e-5}   yields   to  3.4⁻⁵   that's   expected >>> > according to the manual. >>> >>> But the behaviour is wrong. >> >> I don't know if it's w

Re: [NTG-context] Possible bug in \unit

2011-12-07 Thread Mojca Miklavec
On Thu, Dec 8, 2011 at 00:12, Marco wrote: > On 2011-12-07 Mojca Miklavec wrote: > >> > \unit{3.4e-5}   yields   to  3.4⁻⁵   that's   expected >> > according to the manual. >> >> But the behaviour is wrong. > > I don't know if it's wrong. But 5e3 would render 5^3 which is hopefully still 125. > I

Re: [NTG-context] Possible bug in \unit

2011-12-07 Thread Marco
On 2011-12-07 Mojca Miklavec wrote: > On Wed, Dec 7, 2011 at 22:27, Marco wrote: > > There seems to be a bug in the new unit system for \unit{kbit}: > > > > % bit > > \unit{kilo bit}  % kbit > > \unit{kilobit}   % kbit > > \unit{kbit}      % kB, shouldn't this be kbit? > > kB is kilobyte, not k

Re: [NTG-context] Possible bug in \unit

2011-12-07 Thread Mojca Miklavec
On Wed, Dec 7, 2011 at 22:27, Marco wrote: > There seems to be a bug in the new unit system for \unit{kbit}: > > % bit > \unit{kilo bit}  % kbit > \unit{kilobit}   % kbit > \unit{kbit}      % kB, shouldn't this be kbit? kB is kilobyte, not kilobit, but "kb" is probably also valid? > Another thin

[NTG-context] Possible bug in \unit

2011-12-07 Thread Marco
There seems to be a bug in the new unit system for \unit{kbit}: % bit \unit{kilo bit} % kbit \unit{kilobit} % kbit \unit{kbit} % kB, shouldn't this be kbit? Another thing: \unit{3.4e-5} yields to 3.4⁻⁵ that's expected according to the manual. But how to get 3.4·10⁻⁵ (either with \cot o