Subject: mailing-list for TeXmacs Users
List archive
From : "chu-ching huang" <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] texmacs and octave
- Date: Sat, 29 Jan 2011 09:13:21 +0800
On Fri, 28 Jan 2011 07:24:16 +0100, texmacs wrote
> Thanks for the answer but this solution is only regarding print stuff.
>
> Octave does not run in texmacs. I am even not able to do 5+6 inside
> texmacs. I use debian squeeze and did not change anything. Official
> plugins, official texmacs, official octave.
>
> ....
> error: `LOADPATH' undefined near line 3 column 121
>
> error: called from:
>
LOADPATH is obsolete since octave-2.9, I remember that you are using
octave-3.2.5(?). If so, modify .octaverc (in
/usr/local/share/TeXmacs/plugins/octave/octave or
/usr/share/TeXmacs/plugins/octave/octave directory) as follows:
---- begin ----
d=getenv("TEXMACS_PATH");
if (length(d) > 0)
# 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
#if (exist ("OCTAVE_VERSION") == 5)
# As of Octave version 3, "instead of setting the built-in variable
# LOADPATH, you must use addpath [...] to manipulate the function
# search path." [1]
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.
#else
# LOADPATH=[LOADPATH, \
# [d,"/plugins/octave/octave/tm:"], \
# [d,"/plugins/octave/octave/plot:"], \
# [d,"/plugins/octave/octave/polynomial:"]];
#endif
# Customize the command-line prompt.
#if (exist ("OCTAVE_VERSION") == 5)
# As of Octave version 3, "all built-in variables have been converted
# to functions." [1]
PS1("\\002channel:prompt\\005octave> \\005");
PS2("\\002channel:prompt\\005> \\005");
#else
# PS1="\\002channel:prompt\\005octave> \\005";
# PS2="\\002channel:prompt\\005> \\005";
#endif
# Define some global variables.
global TMSTRUCT=0;
global TMCOLORS=["black"; "red"; "magenta"; "orange"; "green"; "blue";];
global TMCOLIDX=rows(TMCOLORS);
endif
-------- end ----------
i.e. comment out all the setting about < octave-2.9. Hope this work for you,
Best regards,
cch
- [TeXmacs] texmacs and octave, texmacs, 01/23/2011
- Re: [TeXmacs] texmacs and octave, chu-ching huang, 01/24/2011
- Re: [TeXmacs] texmacs and octave, texmacs, 01/28/2011
- Re: [TeXmacs] texmacs and octave, chu-ching huang, 01/29/2011
- Re: [TeXmacs] texmacs and octave, texmacs, 01/28/2011
- [TeXmacs] Re: texmacs and octave, texmacs, 01/28/2011
- Re: [TeXmacs] texmacs and octave, chu-ching huang, 01/24/2011
Archive powered by MHonArc 2.6.19.