HOWTO document Maxima sessions?



> 
> Andrey G. Grozin wrote:
> 
> >Hello,
> >
> >On Fri, 7 Nov 2003, Peter Ulrich Kruppa wrote:
> >
> >>I wonder what would the most reasonable way to document my Maxima
> >>sessions. I don't need a perfect latex layout, but something like
> >>Maple's worksheets.
> >>
> >GNU TeXmacs is a good solution here (http://www.texmacs.org). I'd 
> >recommend to install the newest version (1.0.2.6), because I have
> >improved Maxima support in this version a lot.
> >To make things look more like Mathematica (ot Maple) notebook, you
> >can use Document -> Use package -> Program -> varsession

TeXmacs is the closest thing Maxima currently has to a
Maple/Mathematica style interface.  (I haven't checked out varsession -
thanks for the tip :-).  I'm gonna need to update the maximabook
TeXmacs part quite a bit from the look of things.)  

However, this presupposes you are running Linux.  If not, or if you
prefer LaTeX editing, the next best solution is probably emaxima, a
very powerful emacs mode.  The Maxima Book in the docs section is
created in emaxima.  It does not give you immediate graphical feedback
like imaxima mode, but when you generate your ps or pdf the maxima
sessions are smoothly integrated.  (Disclaimer - I haven't tried
emaxima on the Windows emacs, so there may be some quirks I'm not aware
of.)

> >>- Maxima's output (including graphics),
> >>
> >Including graphics requires some hand-work. When you run a plotting 
> >command in Maxima, you get a separate Tk window with the plot. You
> >can do some things with this plot (move, scale, rotate...). When 
> >you are satisfied, just save it as eps file via the menu, and 
> >include this file into your TeXmacs document in the standard way.
> >I was told that menus in these plot windows don't work with some
> >window managers. I use KDE, and everything works perfectly for me.

Personally I'd recommend the latest gnuplot over the openmath stuff. 
But the same thing holds - there is currently no way to have the plot
command "embed" the results in a document automatically.  I don't know
if TeXmacs supports it, but maybe an idea for the future would be to
have a command defined in the maxima init stuff texmacs defines that
would automatically load a postscript filename returned by the maxima
process, and the maxima setup could be tweaked to support this.  Not
interactive plotting, but at least better than nothing and certainly
more convenient than doing it by hand.  Maybe there could even be a
TeXmacs dialouge defined that could send options to the plotting
program, but I don't know enough about TeXmacs to know if it's set up
for that.

--- Richard Fateman <fateman@cs.berkeley.edu> wrote:

> This requires some hand editing, especially if you want to
> break elaborate lines in TeX in some sensible way.

TeXmacs and emaxima will try to make use of the TeX breqn package,
which will do VERY elementary stuff (think breaking a long sum up over
two lines).  For anything at all non-trivial though Richard's right -
there is no automatic solution yet.  Someday we may try to extend the
routines maxima uses on the command line to handle fancier stuff, but
the mathematics comes first and GUI related stuff is a pretty low
priority now. :-/
 
CY

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree