ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: <Robin.Kirkham@csiro.au>
To: <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: \unit and Hertz, lux, and degrees/minutes/seconds
Date: Sun, 27 Nov 2011 21:59:33 +1100	[thread overview]
Message-ID: <746538930812A54DA07A768D52329470020C7D5286@exvic-mbx01.nexus.csiro.au> (raw)
In-Reply-To: <4ECF51F5.7050308@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

On 25 November 2011, Hans Hagen [pragma@wxs.nl] wrote:

> I uploaded a new beta.
> ...

> - Hz, dB (actually deci + bel so megabel also works), lx, permille, t,
> k, Da added

Actually decibel is an odd one, a logarithmic unit, so prefixes other than
"deci" are never used. However the implementation is no problem.

> - ad 2: no looking back (would demand an extra correction pass
> elsewhere, maybe some day)

Here I meant just space within the argument to \unit{}. It seems to be
handled correctly now ...

> - ad 8: manipulating the input this way is somewhat beyond the purpose
> of a typesetting system

(Normalisation of numbers and unit prefixes). OK, just seeing where the line
was to be drawn. However, in the code a comment notes the possibility of
automatic conversions to imperial units, which is a step even further, actually.
Personally I don't think it's a good idea. [Or the b-grade movies].

> - ad 9: much will be configureable; see mkiv file for an example of
> defining extra units (\registerunit [units] [point=pt, basepoint=bp]);

Works, although 

> - I myself am not going to look in all kind of other tex stuff that lays
> around as it's up to users/usage what is added, given that it fits into
> the model of context; we have the old units modules as starting point

That was a note to self, but any takers ...

I attach a (much shorter) bunch of test cases (source and pdf again).

Thanks,

Robin



[-- Attachment #2: units2.tex --]
[-- Type: application/x-tex, Size: 2097 bytes --]

[-- Attachment #3: units2.pdf --]
[-- Type: application/pdf, Size: 28219 bytes --]

[-- Attachment #4: 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
___________________________________________________________________________________

  reply	other threads:[~2011-11-27 10:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.0.1321614002.10878.ntg-context@ntg.nl>
2011-11-21  1:00 ` Robin Kirkham
2011-11-21  9:52   ` Hans Hagen
2011-11-24 12:36     ` Robin.Kirkham
2011-11-24 12:58       ` Wolfgang Schuster
2011-11-25  9:29         ` Ian Lawrence
2011-11-25 10:00           ` Hans Hagen
2011-11-24 13:42       ` Romain Diss
2011-11-24 20:18         ` Pontus Lurcock
2011-11-25  8:18           ` Hans Hagen
2011-11-25 13:54             ` Wolfgang Schuster
2011-11-25  8:29       ` Hans Hagen
2011-11-27 10:59         ` Robin.Kirkham [this message]
     [not found] <mailman.707.1321583719.4232.ntg-context@ntg.nl>
2011-11-18  3:10 ` Robin Kirkham
2011-11-18  3:31   ` Pontus Lurcock
2011-11-18  7:26     ` Hans Hagen
2011-11-18  9:28       ` Pontus Lurcock
2011-11-18  2:05 Robin Kirkham
2011-11-18  2:12 ` Robin Kirkham
2011-11-18  2:35   ` Pontus Lurcock

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=746538930812A54DA07A768D52329470020C7D5286@exvic-mbx01.nexus.csiro.au \
    --to=robin.kirkham@csiro.au \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).