On 7/1/07, sen1 at math.msu.edu <sen1 at math.msu.edu> wrote:
> I would like to output this to a file so that it keeps the same
> format. How do I do it?
Sheldon, maybe with_stdout does what you want.
with_stdout captures explicitly printed output (e.g. output from
Maxima print and Lisp FORMAT) but with_stdout does not
capture stuff printed by the Maxima display code.
Or maybe writefile is what you want -- writefile captures all of the
input and output (including expression labels and displayed output).
The Maxima functions grind and stringout might also be
useful in this context.
HTH
Robert Dodier