--- /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
Archive powered by MHonArc 2.6.19.