From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Units misbehaving, I think
Date: Thu, 11 Aug 2011 06:18:12 +0100 [thread overview]
Message-ID: <47485D5E-C9D7-49C1-B3F0-3818719ADC69@gmail.com> (raw)
In-Reply-To: <F907AB67-A11B-4E52-B1DC-A19A674E015E@googlemail.com>
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-08-11 5:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 16:50 Ian Lawrence
2011-08-10 17:04 ` Wolfgang Schuster
2011-08-11 5:18 ` Ian Lawrence [this message]
2011-08-12 16:50 ` Hans Hagen
2011-09-15 5:55 ` Ian Lawrence
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47485D5E-C9D7-49C1-B3F0-3818719ADC69@gmail.com \
--to=physics.rooted@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).