Failure to convert certain symbols to InputForm when using when using AutoGeneratedPackage->True
- To: mathgroup at smc.vnet.net
- Subject: [mg79957] Failure to convert certain symbols to InputForm when using when using AutoGeneratedPackage->True
- From: "Andrew Moylan" <andrew.j.moylan at gmail.com>
- Date: Thu, 9 Aug 2007 05:29:24 -0400 (EDT)
Create a new notebook and type the following into a Code (Alt+8) cell:
Integrate[x, {x, 0, 1}]
Sum[x, {x, 0, 1}]
Now select the cell and convert it to StandardForm (Ctrl+Shift+N). The
special integral and summation symbols, together with two-dimensional under-
and overscripts, and super- and subscripts, appear.
(As an alternative to the above, you could simply type the StandardForm
directly using two-dimensional input.)
Now save the notebook somewhere. When prompted to create an auto-save
package, choose to create one. Examine the resulting .m file. It contains
these lines:
\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(1\)]\(x \[DifferentialD]x\)\)
\!\(
\*UnderoverscriptBox[\(\[Sum]\), \(x = 0\), \(1\)]x\)
They have not been converted to InputForm (which is normally the case for
auto-generated package files as of version 6); they have been left as boxes!
Here is what I expected to see in the automatically generated .m file:
Integrate[x, {x,0,1}]
Sum[x, {x,0,1}]
Why is it that StandardForm integrals and sums are left as uninterpreted
boxes instead of being converted to InputForm?