Great, thank you! Maybe this should become the default for the \digits command? Or at least turned on via an option to \digits? I guess this is the wanted behavior for many users, so this should be made accessible easily... But maybe I'm wrong! Best regards, Morgan Wolfgang Schuster a écrit :
On Fri, Jun 20, 2008 at 4:10 PM, Morgan Brassel
wrote: Thank you, Wolfgang. I have already read the "This Way" on your link very carefully. In fact, I was looking for a solution to have \digits{e-5} printed as 10^5 \digits{2e-5} printed as 2 . 10^5 Is it possible to do that? to detect if there is a number before the 'e' in \digits?
\def\digitpowerseparator {\ifx\collecteddigits\empty 10 \else \cdot10 \fi}
\starttext
\digits{e-5}
\digits{2e-5}
\stoptext
Regards, Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________