[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] Octave plugin
From: |
Joris van der Hoeven |
Subject: |
Re: [Texmacs-dev] Octave plugin |
Date: |
Mon, 27 Apr 2009 21:47:29 +0200 |
User-agent: |
Mutt/1.5.9i |
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
> d=getenv("TEXMACS_PATH");
> if (length(d) > 0)
>
> addpath([d,"/plugins/octave/octave/tm"],[d,"/plugins/octave/octave/plot"],[d,"/plugins/octave/octave/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;
> % gset terminal postscript eps enhanced color;
> % gset size 0.5,0.5;
> tmrepl
> endif
> d=getenv("TEXMACS_PATH");
> if (length(d) > 0)
>
> addpath([d,"/plugins/octave/octave/tm"],[d,"/plugins/octave/octave/plot"],[d,"/plugins/octave/octave/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;
> % gset terminal postscript eps enhanced color;
> % gset size 0.5,0.5;
> tmrepl
> endif
> function tmrepl()
> prompt=sprintf("%cchannel:prompt%coctave> %c",2,5,5);
> r=input(prompt, "s");
> texmacsanswer="texmacs";
> while ( 1 )
> if r(length(r))!=";"
> dispans=1;
> else
> dispans=0;
> endif
> r=sprintf("%ctexmacs%c; %s;",39,39,r);
> texmacsanswer=eval(r,"tmlasterr");
> if dispans & isnewans(texmacsanswer)
> tmdisp(texmacsanswer);
> endif
> r=input(prompt,'s');
> endwhile
> endfunction
> _______________________________________________
> Texmacs-dev mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/texmacs-dev
- [Texmacs-dev] texmacs 1.0.7 fails to build with g++-4.3, Kamaraju S Kusumanchi, 2009/04/20
- Re: [Texmacs-dev] texmacs 1.0.7 fails to build with g++-4.3, Joris van der Hoeven, 2009/04/20
- [Texmacs-dev] /bin/sh vs. /bin/bash in Ubuntu, Andrea Gamba, 2009/04/22
- Re: [Texmacs-dev] /bin/sh vs. /bin/bash in Ubuntu, Joris van der Hoeven, 2009/04/25
- Re: [Texmacs-dev] /bin/sh vs. /bin/bash in Ubuntu, Andrey G. Grozin, 2009/04/26
- Re: [Texmacs-dev] /bin/sh vs. /bin/bash in Ubuntu, Joris van der Hoeven, 2009/04/26
- Re: [Texmacs-dev] /bin/sh vs. /bin/bash in Ubuntu, David Allouche, 2009/04/27
- Re: [Texmacs-dev] /bin/sh vs. /bin/bash in Ubuntu, Joris van der Hoeven, 2009/04/27
- [Texmacs-dev] Octave plugin, Andrea Gamba, 2009/04/27
- Re: [Texmacs-dev] Octave plugin,
Joris van der Hoeven <=
- Re: [Texmacs-dev] Octave plugin, Andrea Gamba, 2009/04/27
- Re: [Texmacs-dev] /bin/sh vs. /bin/bash in Ubuntu, Andrea Gamba, 2009/04/27
- Re: [Texmacs-dev] /bin/sh vs. /bin/bash in Ubuntu, Joris van der Hoeven, 2009/04/27