texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Octave plugin


From: Andrea Gamba
Subject: Re: [Texmacs-dev] Octave plugin
Date: Sat, 02 May 2009 21:22:57 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

Joris van der Hoeven wrote:
Dear Andrea,

If I understand well, you are just proposing to uncomment all references to 
gset.
Do you know if there is a way to test the version of octave and execute the code
only for older version. In that way, we remain backward compatible.

Thanks, Joris
Sorry Joris,

the previous versions of .octaverc and tm-start.oct were still buggy, here are the correct ones.

The point is that most of the functions in octave29/plot/ don't work with Octave 3.0.

However, if Octave does not find them in its path it uses its default and graphics are outputted to an external window, similarly to what happens with the Maxima plugin.

So with a minimal effort the Octave plugin becomes usable again (and backward compatible with Octave versions < 2.9). Then possibly someone could fix the functions in octave29/plot/ to get back inline graphics.

Andrea

d=[getenv("TEXMACS_PATH"),"/plugins/octave/octave29"];
if (length(d) > 0)
   addpath([d,"/tm:"],[d,"/polynomial:"]);
   PS1("\\002channel:prompt\\005octave> \\005");
   PS2("\\002channel:prompt\\005> \\005");
   global TMSTRUCT=0;
   global TMCOLORS=["black"; "red"; "magenta"; "orange"; "green"; "blue";];
   global TMCOLIDX=6;
   tmrepl
endif
d=[getenv("TEXMACS_PATH"),"/plugins/octave/octave29"];
if (length(d) > 0)
   addpath([d,"/tm:"],[d,"/polynomial:"]);
   PS1("\\002channel:prompt\\005octave> \\005");
   PS2("\\002channel:prompt\\005> \\005");
   global TMSTRUCT=0;
   global TMCOLORS=["black"; "red"; "magenta"; "orange"; "green"; "blue";];
   global TMCOLIDX=6;
   tmrepl
endif

reply via email to

[Prev in Thread] Current Thread [Next in Thread]