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