ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Digits and exponents
@ 2011-08-10  7:57 Ian Lawrence
  2011-08-10 20:22 ` Ian Lawrence
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Lawrence @ 2011-08-10  7:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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: 4041 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] 2+ messages in thread

* Re: Digits and exponents
  2011-08-10  7:57 Digits and exponents Ian Lawrence
@ 2011-08-10 20:22 ` Ian Lawrence
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lawrence @ 2011-08-10 20:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

end of thread, other threads:[~2011-08-10 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-10  7:57 Digits and exponents Ian Lawrence
2011-08-10 20:22 ` 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).