"Andrey G. Grozin" <A.G.Grozin@inp.nsk.su> writes:
> The main thing any interface must know is: what piece of output is a
> prompt, i.e., immediately preceeds an input? In texmacs.lisp, I
> redefined MAIN-PROMPT, and the interface has no problem recognizing
> (C1) prompts. But when a break prompt is generated (MAXIMA>> in GCL),
> [..] Similarly, when a user uses describe(something);, a prompt asking
> to input one or several numbers appear. How to redefine it? (again, it
> seems Lisp-specific).
>
> I think that some more things from texmacs.lisp should be incorporated
> in the mainline Maxima sources, e.g., a patch to DISPLA which forces
> Maxima to output everything in LaTeX if $DISPLAY2D has some value, and
> some more stuff. It can be useful for other interface writers.
Yes, indeed. I used texmacs.lisp (with some small modifications) in an
Emacs mode [1] for displaying Maxima output as images typeset by TeX.
I think I've managed to work around the prompt issues you mention above,
though I agree that it would be nice if the Maxima output was more
structured.
[1] <http://purl.org/harder/imaxima.tar.gz>
--
Cheers,
Jesper Harder