In TeX, a^bc would be interpreted mathematically as
(a^b)c, whereas
a^{bc} would be interpreted as a^{b c}, where the
exponent is a product
of b and c, or an application of b on c. Neither
interpretation is what
is intended if bc is a single identifier.
One would need something like a^{\rm bc}, but even that
is possibly
ambiguous; but some change in font is needed.
William
On Tue, 10 Jul 2012 21:48:10 +0200
kp <address@hidden> wrote:
Hello,
by accident I noticed the following irregularity in the
TeX output
(missing {}):
a**bc (or a^bc).
Axiom:
$$
a^bc
\leqno(4)
$$
OpenAxiom, Fricas:
$$
a \sp bc
\leqno(6)
$$
Usually, one uses only one character variables :)
I'm using Axiom mostly via Python (TeXmacs, IPython) so
that
re.sub(r"\\sp ([^ \t\r\n\f\v\\]*)", r"^{\1}", tex)
is a workaround for the moment.
Cheers
Kurt
_______________________________________________
Axiom-developer mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/axiom-developer
William Sit, Professor Emeritus
Mathematics, City College of New York
Office: R6/291D Tel: 212-650-5179
Home Page: http://scisun.sci.ccny.cuny.edu/~wyscc/