Subject: mailing-list for TeXmacs Users
List archive
From : Mansour Moufid <address@hidden>- To: address@hidden
- Cc: address@hidden
- Subject: [TeXmacs] Octave 3 integration into TeXmacs (cf. bug #20312 #424877)
- Date: Wed, 2 Dec 2009 16:41:15 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=VrkmO0bQjpIPIKereQyPAVfc5B/1m4ZNgRkgOO29NKeNlcC4kFp3oX+ZqO2zKV+kmF kjefNeowLQjleE5jtEa83AKAJsKWodAVl9iqItbCqyZXz3AtzOSKUTx+iTjM/Y6H4tw3 nJBAeh6imFOV4BQpGY7k86YRwbKgmw6o7LKdE=
Hello list(s),
Those of you wishing to use recent versions of Octave within TeXmacs
have probably encountered the fatal errors described in bug #20312 [1]
(Debian bug #424877 [2]). A patch has recently been submitted upstream
[3]. You can apply it directly to the SVN source, or wait (perhaps
another 2.5 years?) for the bug to be fixed in future releases.
In the meantime, you can simply apply the patch attached, as follows:
# patch -p0 < octave3.patch
Only scripts are affected, so no compiling is needed. Tested with
TeXmacs version 1.0.7.2 and Octave version 3.0.5.
Hope this helps.
[1] <https://savannah.gnu.org/bugs/?20312>
[2] <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=424877>
[3] <https://savannah.gnu.org/patch/?6978>
--
Mansour Moufid
--- /usr/share/texmacs/TeXmacs/plugins/octave/octave/.octaverc 2009-06-08 15:01:53.000000000 -0400 +++ /usr/share/texmacs/TeXmacs/plugins/octave/octave/.octaverc.new 2009-12-02 15:48:20.484589772 -0500 @@ -1,11 +1,24 @@ d=getenv("TEXMACS_PATH"); if (length(d) > 0) - LOADPATH=[[d,"/plugins/octave/octave/tm:"],[d,"/plugins/octave/octave/plot:"],[d,"/plugins/octave/octave/polynomial:"],LOADPATH]; - 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; -endif +# Add the following directories to Octave's ``load path'': +# - ${TEXMACS_PATH}/plugins/octave/octave/tm +# - ${TEXMACS_PATH}/plugins/octave/octave/plot +# - ${TEXMACS_PATH}/plugins/octave/octave/polynomial + fsep=filesep(); + prefix=[d,fsep,"plugins",fsep,"octave",fsep,"octave",fsep]; + addpath ([prefix,"tm"], "-end"); + addpath ([prefix,"plot"], "-end"); + addpath ([prefix,"polynomial"], "-end"); +# NB: filesep() is used above for portability. + +# Customize the command-line prompt. + PS1("\\002channel:prompt\\005octave> \\005"); + PS2("\\002channel:prompt\\005> \\005"); + +# Define some global variables. + global TMSTRUCT=0; + global TMCOLORS=["black"; "red"; "magenta"; "orange"; "green"; "blue";]; + global TMCOLIDX=6; + +endif --- /usr/share/texmacs/TeXmacs/plugins/octave/octave/tm-start.oct 2009-06-08 15:01:53.000000000 -0400 +++ /usr/share/texmacs/TeXmacs/plugins/octave/octave/tm-start.oct.new 2009-12-02 15:48:00.580587599 -0500 @@ -1,11 +1,19 @@ d=getenv("TEXMACS_PATH"); if (length(d) > 0) - LOADPATH=[[d,"/plugins/octave/octave/tm:"],[d,"/plugins/octave/octave/plot:"],[d,"/plugins/octave/octave/polynomial:"],LOADPATH]; - 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 + +# Note: What follows is already executed by the .octaverc script (verbatim), +# and is therefore commented out here. +# fsep=filesep(); +# prefix=[d,fsep,"plugins",fsep,"octave",fsep,"octave",fsep]; +# addpath ([prefix,"tm"], "-end"); +# addpath ([prefix,"plot"], "-end"); +# addpath ([prefix,"polynomial"], "-end"); +# 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
- [TeXmacs] Octave 3 integration into TeXmacs (cf. bug #20312 #424877), Mansour Moufid, 12/02/2009
- Re: [TeXmacs] Octave 3 integration into TeXmacs (cf. bug #20312 #424877), Fabricio Alcalde, 12/03/2009
- Re: [TeXmacs] Octave 3 integration into TeXmacs (cf. bug #20312 #424877), Mansour Moufid, 12/03/2009
- Re: [TeXmacs] Octave 3 integration into TeXmacs (cf. bug #20312 #424877), Joris van der Hoeven, 12/03/2009
- Re: [TeXmacs] Octave 3 integration into TeXmacs (cf. bug #20312 #424877), Mansour Moufid, 12/09/2009
- Re: [TeXmacs] Octave 3 integration into TeXmacs (cf. bug #20312 #424877), Fabricio Alcalde, 12/03/2009
Archive powered by MHonArc 2.6.19.