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?
--
Romain Diss