Sudden strange (color) errors in imaxima



Thanks very much for your reply!

Hmm, I'm using maxima 5.30.0, compiled from source, and I've byte-compiled
the emacs-lisp files in /opt/maxima-5.30.0/interfaces/emacs/imaxima, and
loaded imaxima.elc from that directory, but still the same error.  And in
neither imaxima.el nor mactex.lisp can I find the variable TEX-MLABEL.
There is the line

MAXIMA::BETA-INCOMPLETE MAXIMA::TEX-MLABLE MAXIMA::BETWEENP

in sys-proclaim.lisp, but I don't know whether this has any bearing on my
error or not.  And my .emacs file contains the line

(load "/opt/maxima-5.30.0/interfaces/emacs/imaxima/imaxima.elc")

to ensure loading of the correct file.  I'm still a bit stumped!

cheers,
Alasdair


On Thu, Aug 22, 2013 at 4:58 AM, Robert Dodier <robert.dodier at gmail.com>wrote:

> On 2013-08-05, Alasdair McAndrew <amca01 at gmail.com> wrote:
>
> > For some reason, my imaxima (maxima 5.30.0, compiled with SBCL) is
> suddenly
> > behaving badly in my emacs 23.3.  Here's what happens:
> >
> > (%i1) 2+2;
> >=1B[00;30m
> > LaTeX error in: \mbox{\tt\red(\mathrm{\%o1}) \black}4
> > (%i2)
>
> That's the TeX output for an output label as defined by TEX-MLABEL in
> src/mactex.lisp. Imaxima redefines TEX-MLABEL to have somewhat different
> output; in particular it doesn't contain \black or \red.
>
> I suspect that the problem is a version mismatch between Maxima and
> Imaxima. Imaxima and Maxima have to agree that a label is MLABEL. Are
> you, perhaps, loading a previous version of Imaxima? What does your
> .emacs say about load-path? It must point into the Maxima installation
> directory.
>
> MLABEL was MLABLE for a long time, and changed not too long ago (maybe
> a year ago).
>
> best
>
> Robert Dodier
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew