ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: Romain Diss <romain.diss@yahoo.fr>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \unit problem with powers of ten.
Date: Fri, 23 Nov 2012 23:51:17 +0100	[thread overview]
Message-ID: <50AFFDE5.3050307@wxs.nl> (raw)
In-Reply-To: <201211232025.21853.romain.diss@yahoo.fr>

On 11/23/2012 8:25 PM, Romain Diss wrote:
> Hi,
>
> Le jeudi 22 novembre 2012, Hans Hagen a écrit :
>> On 11/19/2012 11:44 PM, Romain Diss wrote:
>>> Hi all,
>>>
>>> I got some problems to express powers of ten in the \unit command. See
>>> the strange behaviour with these two minimal examples.
>>>
>>> \starttext
>>> \unit{10^2 meter}\\
>>> \unit{10^{-12} second}
>>> \stoptext
>>> Is this a bug or are these expressions not supported?
>>
>> not supported .. i've added it to the upcoming beta:
> Thank you very much.
>
>> needs testing as usual (and wiki adaption as well)
> I have upgraded my context version few minutes ago:
> $ context --version
> mtx-context     | ConTeXt Process Management 0.60
> mtx-context     | current version: 2012.11.23 17:35
>
> but your following code doesn't work completely:
>
>> \starttext
>>
>> \startlines
>> \unit{10^12 meter}
>> \unit{10^{-12} second}
>> \unit{10^{12} second}
>> \unit{10e12 meter}
>> \unit{10e{-12} second}
>> \unit{10e{12} second}
>> \stoplines
>>
>> \stoptext
>
> The '^' and 'e' all print a '10 ×' at the begining. It's what is expected for
> 'e' but not for '^'. Did I miss something?

well, until now ^ and e were equivalent so if that has to change (say ^ 
no 10) then there need to be agreement about this as it's an 
incompatible change

i only added support for {..}

-----------------------------------------------------------------
                                           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
___________________________________________________________________________________


  reply	other threads:[~2012-11-23 22:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19 22:44 Romain Diss
2012-11-20 13:43 ` Romain Diss
2012-11-22 14:45   ` Romain Diss
2012-11-22 14:51     ` luigi scarso
2012-11-22 18:09 ` Hans Hagen
2012-11-23 13:44   ` Sietse Brouwer
2012-11-23 19:25   ` Romain Diss
2012-11-23 22:51     ` Hans Hagen [this message]
2012-11-24  0:48       ` Sietse Brouwer
2012-11-24  7:39         ` Romain Diss
2012-11-24  9:59         ` Hans Hagen
2012-11-24 10:15           ` Romain Diss

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=50AFFDE5.3050307@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=romain.diss@yahoo.fr \
    /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).