ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Digits and exponents
Date: Wed, 10 Aug 2011 21:22:23 +0100	[thread overview]
Message-ID: <380A9B58-D387-468B-8DC9-4A5B65816587@gmail.com> (raw)
In-Reply-To: <730FCABC-FFB0-47A5-B747-0A4A044539B3@gmail.com>


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

A complete example:

\starttext

{\em digit exponent powers - don't work}

\digits{20^-12}



\digits 123.222,00^10

\digits 123.222,00e10

\stoptext


On 10 Aug 2011, at 08:57, Ian Lawrence wrote:

> Morning all,
> 
> I am trying to get together something for expressing physics appropriately and precisely.
> 
> The \units and \lunits command and I are becoming better acquainted, but now I ma having grief with with the \digits{}. In particular, exponents don't seem to function as documented in the 'my way' and I cannot find anything more up to date on the wiki.
> 
> Input:
> 
> \digits 123.222,00^10
> 
> \digits 123.222,00e10
> 
> \digits /123.222,00e-12
> 
> \digits -123.222,00e-12
> 
> \digits +123.222,00e-12
> 
> Actual output:
> 
> 123 222.0010
> 
> 123 222.0010
> 
> 123 222.00−12
> 
> −123 222.00−12
> 
> +123 222.00−12
> 
> 
> 
> (in each case last two digits are superscript, as their signs)
> 
> 
> 
> Expected output
> 
> 123.222,00 · 1010
> 
> 123.222,00 · 1010
> 
> 123.222,00 · 10−12
> 
> -123.222,00 · 10−12
> 
> +123.222,00 · 10−12 
> 
> 
> (in each case last two digits are superscript, as their signs)
> 
> 
> ???Anyone?
> 
> 


[-- Attachment #1.2: Type: text/html, Size: 4657 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
___________________________________________________________________________________

      reply	other threads:[~2011-08-10 20:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10  7:57 Ian Lawrence
2011-08-10 20:22 ` Ian Lawrence [this message]

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=380A9B58-D387-468B-8DC9-4A5B65816587@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).