Wolfgang Schuster wrote:
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
ok, patched: \def\digitpowerseparator {\ifx\collecteddigits\empty\else\cdot\fi10} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------