ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Units misbehaving, I think
@ 2011-08-10 16:50 Ian Lawrence
  2011-08-10 17:04 ` Wolfgang Schuster
  2011-08-12 16:50 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Ian Lawrence @ 2011-08-10 16:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I don't think the /unit and /lunit command like a quantity that starts with a zero.. Any one else?


First two work fine, last one causes all kinds of grief, in lists, lines etc. The leading zero and decimal point are zapped.

\unit{1.0 meter inverse second}

\lunit{1.0 meter inverse second}

\unit{0.1 meter inverse second}

\lunit{0.1 meter inverse second}

\lunit{0 meter inverse second}


And pretty, please, can we spell metre correctly soon ( sorry, people over the pond…)

… Or at least have the option to...
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Units misbehaving, I think
  2011-08-10 16:50 Units misbehaving, I think Ian Lawrence
@ 2011-08-10 17:04 ` Wolfgang Schuster
  2011-08-11  5:18   ` Ian Lawrence
  2011-08-12 16:50 ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-08-10 17:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 913 bytes --]


Am 10.08.2011 um 18:50 schrieb Ian Lawrence:

> I don't think the /unit and /lunit command like a quantity that starts with a zero.. Any one else?
> 
> 
> First two work fine, last one causes all kinds of grief, in lists, lines etc. The leading zero and decimal point are zapped.
> 
> \unit{1.0 meter inverse second}
> 
> \lunit{1.0 meter inverse second}
> 
> \unit{0.1 meter inverse second}
> 
> \lunit{0.1 meter inverse second}
> 
> \lunit{0 meter inverse second}
> 
> 
> And pretty, please, can we spell metre correctly soon ( sorry, people over the pond…)

You should first provide a *working* minimal example!

\starttext
\lunit{1.0 meter inverse second}
\stoptext

! Undefined control sequence.

l.2 \lunit
          {1.0 meter inverse second}

> … Or at least have the option to…

This is easy, Hans has to add only an entry for “metre” in phys-dim.lua.

Wolfgang



[-- Attachment #1.2: Type: text/html, Size: 1663 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Units misbehaving, I think
  2011-08-10 17:04 ` Wolfgang Schuster
@ 2011-08-11  5:18   ` Ian Lawrence
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Lawrence @ 2011-08-11  5:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2025 bytes --]


On 10 Aug 2011, at 18:04, Wolfgang Schuster wrote:

> 
> Am 10.08.2011 um 18:50 schrieb Ian Lawrence:
> 
>> I don't think the /unit and /lunit command like a quantity that starts with a zero.. Any one else?
>> 
>> 
>> First two work fine, last one causes all kinds of grief, in lists, lines etc. The leading zero and decimal point are zapped.
>> 
>> \unit{1.0 meter inverse second}
>> 
>> \lunit{1.0 meter inverse second}
>> 
>> \unit{0.1 meter inverse second}
>> 
>> \lunit{0.1 meter inverse second}
>> 
>> \lunit{0 meter inverse second}
>> 
>> 
>> And pretty, please, can we spell metre correctly soon ( sorry, people over the pond…)
> 
> You should first provide a *working* minimal example!
> 
> \starttext
> \lunit{1.0 meter inverse second}
> \stoptext
> 
> ! Undefined control sequence.
> 
> l.2 \lunit
>           {1.0 meter inverse second}
> 
>> … Or at least have the option to…
> 
> This is easy, Hans has to add only an entry for “metre” in phys-dim.lua.
> 
> Wolfgang
> 

I did have a play with the units primitives (at lua level),which fixed it for me, and made some suggestions to Hans.. Along with many other people also making suggestions, I'm sure. I had quite a few suggestions to improve the units module for everyone who speaks SI.

On the other front I now have a saved search to swap metre to meter, but it does no make me happy!

However the leading zero is a new(to me) issue… I'm a bit surprised that no-one else found it.

Ian



> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3493 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Units misbehaving, I think
  2011-08-10 16:50 Units misbehaving, I think Ian Lawrence
  2011-08-10 17:04 ` Wolfgang Schuster
@ 2011-08-12 16:50 ` Hans Hagen
  2011-09-15  5:55   ` Ian Lawrence
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2011-08-12 16:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10-8-2011 6:50, Ian Lawrence wrote:
> I don't think the /unit and /lunit command like a quantity that starts with a zero.. Any one else?
>
>
> First two work fine, last one causes all kinds of grief, in lists, lines etc. The leading zero and decimal point are zapped.
>
> \unit{1.0 meter inverse second}
>
> \lunit{1.0 meter inverse second}
>
> \unit{0.1 meter inverse second}
>
> \lunit{0.1 meter inverse second}
>
> \lunit{0 meter inverse second}
i'll fix it

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Units misbehaving, I think
  2011-08-12 16:50 ` Hans Hagen
@ 2011-09-15  5:55   ` Ian Lawrence
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Lawrence @ 2011-09-15  5:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Hans.. This now seems fixed.

Ian

On 12 Aug 2011, at 17:50, Hans Hagen wrote:

> On 10-8-2011 6:50, Ian Lawrence wrote:
>> I don't think the /unit and /lunit command like a quantity that starts with a zero.. Any one else?
>> 
>> 
>> First two work fine, last one causes all kinds of grief, in lists, lines etc. The leading zero and decimal point are zapped.
>> 
>> \unit{1.0 meter inverse second}
>> 
>> \lunit{1.0 meter inverse second}
>> 
>> \unit{0.1 meter inverse second}
>> 
>> \lunit{0.1 meter inverse second}
>> 
>> \lunit{0 meter inverse second}
> i'll fix it
> 
> -----------------------------------------------------------------
>                                          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
> -----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-15  5:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-10 16:50 Units misbehaving, I think Ian Lawrence
2011-08-10 17:04 ` Wolfgang Schuster
2011-08-11  5:18   ` Ian Lawrence
2011-08-12 16:50 ` Hans Hagen
2011-09-15  5:55   ` Ian Lawrence

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).