
Installation of the Octave interface for TeXmacs 
   by Michael Graffam <mikegraffam@yahoo.com>
------------------------------------------------


Step 1
------

In your ~/.octaverc file, or in your system-wide octaverc place the lines:

if (length(getenv("TEXMACS_PATH")) > 0)
	PS1="\\002channel:prompt\\005\s:\#> \\005";
	PS2="\\002channel:prompt\\005> \\005";
endif


Step 2
------

Uncomment the lines concerning Octave in

	$TEXMACS_PATH/progs/init-texmacs.scm


Step 3
------

Start TeXmacs and use the interface via Text->Session->Octave.


Remark
------
To order to get pritty printed output, a few Octave m-files
are provided in this directory:

tmdisp.m 	Displays an Octave variable "pretty-printed" via TeXmacs
		Supports scalar, matrix, structure and string types
tmpolyout.m	Displays an Octave polynomial as a LaTeX formula
scheme.m	Executes a string as a Scheme expression through TeXmacs
num2scm.m	Converts a scalar to a Scheme expression
mat2scm.m	Converts a vector or matrix to a Scheme expression
str2scm.m	Converts an Octave string to a Scheme expression
struct2scm.m	Converts an Octave structure to a Scheme itemized tree

As necessary (in tmdisp, for example) the TeXmacs interface is tested for, 
and if not present the default Octave output is used. tmdisp may therefore 
be used as a general replacement for Octave's disp that will be compatible 
with both interfaces. 
