Re: Emaxima Emacs Mode



C Y <smustudent1@yahoo.com> writes:

> --- Jesper Harder <harder@ifa.au.dk> wrote:
>
>> To print would require that ps-print.el is aware of images (which it
>> isn't at the moment), and to save you'd have to invent your own file
>> format -- maybe that's not so hard after all.
>
> I was thinking that you could store the whole thing as a tex
> internally, and then just save and print that.

I hadn't thought about that. Right now it's stored internally as e.g.

(C1) expand((a+b+c)^5);

(D1)  c^{5}+5\*b\*c^{4}+5\*a\*c^{4}+10\*b^{2}\*c^{3}+20\*a\*b\*c^{3}+
 10\*a^{2}\*c^{3}+10\*b^{3}\*c^{2}+30\*a\*b^{2}\*c^{2}+30\*a^{2}\*b\*
 c^{2}+10\*a^{3}\*c^{2}+5\*b^{4}\*c+20\*a\*b^{3}\*c+30\*a^{2}\*b^{2}
 \*c+20\*a^{3}\*b\*c+5\*a^{4}\*c+b^{5}+5\*a\*b^{4}+10\*a^{2}\*b^{3}+
 10\*a^{3}\*b^{2}+5\*a^{4}\*b+a^{5}

(C2) 'integrate(sinh(x)*x^3,x);

(D2)  \int {x^{3}\*\sinh x}{\;dx}

(C3) quit();

It wouldn't be hard to transform it to a LaTeX document.

>>   <http://purl.org/harder/imaxima.tar.gz>;
>
> I tried to install, but it just gives me "Symbol's function definition
> is void: imaxima-setup".  What would be causing that?

You probably need

    (require 'imaxima)

before you reference imaxima-setup in your .emacs.