A problem when convert to Tex



>>>>> "Barton" == Barton Willis  writes:

    Barton> No, in TeX  $${5.6 \times 10^{+99}}^{x}$$ means 5.6 10^(99^x) and not
    Barton> (5.6 10^99)^x.  Something like your idea

I've kind of forgotten some of my TeX knowledge. :-(

[snip]

    Barton> I think texnumformat doesn't have enough information to know if the
    Barton> parens are needed---maybe texnumformat needs more arguments?

Unfortunately I don't know how to give texnumformat enough information
to know if parens are needed.  I thought the l and r args in tex-atom
could do it, but they seem to be nil here.

    Barton> With gcl, there is the ugly +99 (instead of just  99) as well ...

That comes from (format nil "~S" 5.6e99) in explode.  ANSI lisp
requires the sign of the exponent to be printed.  We could probably
hack texnumformat to remove the +.

Ray