Le samedi 24 novembre 2012, Hans Hagen a écrit :
On 11/24/2012 1:48 AM, Sietse Brouwer wrote:
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, for one, would expect 2^3 to mean '2 cubed', not 2x10^3. So I'd be in favour of this change. Then again, I have no code that depends on the old meaning...
interesting so then we need a list of more ^2 ^3 ^4 ^5 ... and what about ^1.2 I don't know everyone's use of \units but for physicists I think that the only case where it should be usefull is for 10^something (like \unit{10^-12 second} ;). Maybe the informaticians need 2^something… The other cases are probably marginals.
then, what will be the escape for the texlike 2^3? maybe $2^3$, so $ will leave scanning mode That's already working and this should be the way when one need something unusual. Maybe a support for \m{} should be usefull for those who do not use $...$ anymore. For the moment nested curly brackets aren't supported inside a \m{} which himself is inside a \unit{}.
All the best.
--
Romain Diss