Hi, the following code \starttext 1\unit{bit / second} \stoptext gives 1 econd tested with: mtx-context | current version: 2011.11.14 16:17 Vedran
Hi, On 14 nov 2011, Vedran Miletić wrote:
the following code
\starttext 1\unit{bit / second} \stoptext
gives 1 econd It works correctly here with the latest beta. It gives "1 bit/s".
I take the opportunity of this mail to mention again another \unit problem. I copy/paste here a part of a mail I sent two weeks ago but which didn't get any answer...
It seems that some unit combinations don't work very well with the \unit macro. I have some problems with the m- (milli-) prefix but some tests reveal other strange errors.
Here is a minimal example. The entries 02, 07, 08, 09, 10, 11, 12 and 15 cause problem :
\starttext \startbuffer 00: \unit{10 mm} 01: \unit{10 km} 02: \unit{10,2 mA} 03: \unit{123 kA} 04: \unit{0,001 MA} 05: \unit{1 dal} 06: \unit{2.21 GW} 07: \unit{345 mW} 08: \unit{152.20 mHz} 09: \unit{55.5 mmol} 10: \unit{6.7 mol/l} 11: \unit{125 g/l} 12: \unit{125 g / l} 13: \unit{125 km/s} 14: \unit{125 m/s} 15: \unit{125 mA/s} 16: 1\unit{bit / second} \stopbuffer \typebuffer Result: \startlines \getbuffer \stoplines \stoptext
All the best.
--
Romain Diss
Datuma 14. studenoga 2011. 20:19 Romain Diss
Hi,
On 14 nov 2011, Vedran Miletić wrote:
the following code
\starttext 1\unit{bit / second} \stoptext
gives 1 econd It works correctly here with the latest beta. It gives "1 bit/s".
It does. I posted the wrong code, sorry. Therefore: \starttext 1\unit{second} \stoptext gives 1 econd. Vedran
On 14 nov 2011, Vedran Miletić wrote:
Datuma 14. studenoga 2011. 20:19 Romain Diss
je napisao/la: On 14 nov 2011, Vedran Miletić wrote:
the following code
\starttext 1\unit{bit / second} \stoptext
gives 1 econd
It works correctly here with the latest beta. It gives "1 bit/s".
It does. I posted the wrong code, sorry. Therefore:
\starttext 1\unit{second} \stoptext
gives 1 econd.
But \unit{1 second} gives the correct result...
--
Romain Diss
Datuma 14. studenoga 2011. 20:44 Romain Diss
\starttext 1\unit{second} \stoptext
gives 1 econd.
But \unit{1 second} gives the correct result...
Indeed, but IIRC Hans' original approach was 1\unit{second} style of writing[1]. I would like to know if this can be fixed. Vedran [1] http://www.ntg.nl/pipermail/ntg-context/2011/059762.html
On 15-11-2011 11:12, Vedran Miletić wrote:
Datuma 14. studenoga 2011. 20:44 Romain Diss
je napisao/la: \starttext 1\unit{second} \stoptext
gives 1 econd.
But \unit{1 second} gives the correct result...
Indeed, but IIRC Hans' original approach was 1\unit{second} style of writing[1]. I would like to know if this can be fixed.
I'll look into it (first I have some deadlines to catch). Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Datuma 17. studenoga 2011. 09:26 Hans Hagen
On 15-11-2011 11:12, Vedran Miletić wrote:
Datuma 14. studenoga 2011. 20:44 Romain Diss
je napisao/la: \starttext 1\unit{second} \stoptext
gives 1 econd.
But \unit{1 second} gives the correct result...
Indeed, but IIRC Hans' original approach was 1\unit{second} style of writing[1]. I would like to know if this can be fixed.
I'll look into it (first I have some deadlines to catch).
Hans
Just updated to latest minimals and rechecked, it's fixed. Thanks. Vedran
participants (3)
-
Hans Hagen
-
Romain Diss
-
Vedran Miletić