On 5/4/08, Michel Talon <talon at lpthe.jussieu.fr> wrote:
> If maxima had a way to export a whole session in latex,
Hmm, that's an interesting idea. How about something like this, for a start:
latex_prologue : "\\documentclass{article}
\\begin{document}";
latex_epilogue : "\\end{document}";
texall (output_filename) := with_stdout (output_filename, print
(latex_prologue), for x in reverse (labels) do apply (tex, [x]), print
(latex_epilogue));
That omits anything that was output directly to the console.
Dunno if that is important or not.
> (**) this is a typescript of a small session under TeXmacs:
> (%i1) expand((x+y)^2);
> Evaluation took 0.00 seconds (0.00 elapsed) using 1.086 KB.
> Maxima encountered a Lisp error:
> ("+" 2 . "\\*") is not a proper list
I don't see this error, but I suspect the problem is that TeXmacs
redefines some of the TeX output stuff, and in particular it
defines a TeX property for MTIMES (multiplication) which isn't
consistent with the current version of Maxima.
If you look at texmacs-maxima-whatever.lisp, and cut out the
(defprop mtimes "\\*" texsym)
does that make the problem go away?
HTH
Robert Dodier