mailing-list for TeXmacs Users

Text archives Help


Trying to configure Octave Session


Chronological Thread 
  • From: "Anthony A. Tanbakuchi" <address@hidden>
  • To: address@hidden
  • Subject: Trying to configure Octave Session
  • Date: 08 Jul 2002 17:40:50 +0200

Hi,

First I would like to say that although I am an avid LaTeX user I was
drawn to TeXmacs because it had the ability to to integrate CAS into the
document. This is especially helpful for teachers wishing to
demonstrate how to use software.

Soon I will be teaching a course that will involve some Octave work. I
have been trying to configure an Octave session but have not had too
much luck. I have followed the instruction included with TeXmacs as
well as the quick how-to on the Wikki. IT seems there have been a few
other people interested in this feature but haven't found any info about
someone actually getting it to work.

In summary I created a personal my-init-texmacs.scm file to generate a
new menu entry under sessions for Octave. Then I edited program.ts in
the main TeXmacs path to add the style functions for the interface (Is
there a way that I can place these changes in my personal .Texmacs
directory? --- easier for me to keep track when upgrading). <see below
for the actual files>

When I fire up TeXmacs after making these modifications the whole
session menu disappears from the insert menu. When I use my old
program.ts then the session menu appears with Octave. Of course if I
run it then TeXmacs just complains since it doesn't know how to interact
with octave.

Any suggestions?

I am using TeXmacs V. 1.0.0.1 on Debian Woody w/ kernel 2.4.18
All of the build in sessions work (ie maxima).

Thanks

Anthony A. Tanbakuchi


*****/home/me/.TeXmacs/progs/my-init-texmacs.scm*****
(exec-file "$TEXMACS_PATH/progs" "init-texmacs.scm")
(connection-declare "octave" "octave")
(connection-format "octave" "verbatim" "generic")
(set! session-menu (menu-merge session-menu
'(("octave" (make-session "octave" "default")))))

*****usr/share/texmacs/.../styles/program.ts*************
<TeXmacs|0.3.5.14>

<\body>
<assign|program-style|1.0.0>

\;

<assign|session|<macro|lan|name|body|<with|prog
language|<arg|lan>|this
session|<arg|name>|<expand|<merge|<apply|prog
language>|-session>|<arg|name>|<arg|body>>>>>


<assign|bash-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.5\
fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|bash|mode|prog|<arg|body>>>>>


<assign|giac-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.5\
fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|giac|mode|prog|<arg|body>>>>>


<assign|gTybalt-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|\
0.5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|gTybalt|mode|prog|<arg|body>>>>>


<assign|Macaulay2-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspac\
e|0.5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|Macaulay2|mode|prog|<arg|body>>>>>


<assign|maple-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.\
5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|maple|mode|prog|<arg|body>>>>>


<assign|mathemagix-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspa\
ce|0.5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|mathemagix|mode|prog|<arg|body>>>>>


<assign|maxima-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0\
.5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|maxima|mode|prog|<arg|body>>>>>


<assign|mupad-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.\
5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|mupad|mode|prog|<arg|body>>>>>


<assign|mycas-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.\
5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|mycas|mode|prog|<arg|body>>>>>


<assign|octave-session|<macro|name|body|<lsurround|<vspace*|0.5fn>|<vspace|\
0.5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|octave|mode|prog|<arg|body>>>>>


<assign|pari-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.5\
fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|pari|mode|prog|<arg|body>>>>>


<assign|qcl-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.5f\
n>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|qcl|mode|prog|<arg|body>>>>>


<assign|reduce-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0\
.5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|reduce|mode|prog|<arg|body>>>>>


<assign|scheme-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0\
.5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|scheme|mode|prog|<arg|body>>>>>


<assign|scilab-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0\
.5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|scilab|mode|prog|<arg|body>>>>>


<assign|shell-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.\
5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|shell|mode|prog|<arg|body>>>>>


<assign|yacas-session|<macro|name|body|<surround|<vspace*|0.5fn>|<vspace|0.\
5fn>|<with|first indentation|0fn|interparagraph space|0fn|prog
language|yacas|mode|prog|<arg|body>>>>>

\;

<assign|input|<macro|prompt|body|<expand|<merge|<apply|prog
language>|-input>|<arg|prompt>|<arg|body>>>>


<assign|bash-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1f\

n||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>>>


<assign|gTybalt-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r\

-1fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>\
>>>


<assign|giac-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1f\

n||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>>>


<assign|Macaulay2-input|<macro|prompt|body|<surround|<resize|<with|color|da\
rk
green|<arg|prompt>>|||r-1fn||><space|1fn>|<htab|5mm><with|mode|math|>|<w\
ith|color|blue|<arg|body>>>>>


<assign|maple-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1\

fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>>\
>


<assign|mathemagix-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|\

||r-1fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|bod\
y>>>>>


<assign|maxima-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-\

1fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>\
>>


<assign|mupad-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1\

fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>>\
>


<assign|mycas-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1\

fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>>\
>


<assign|octave-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-\
1fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|dark
green|<arg|body>>>>>


<assign|pari-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1f\
n||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|dark
green|<arg|body>>>>>


<assign|qcl-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1fn\
||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|dark
green|<arg|body>>>>>


<assign|reduce-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-\

1fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>\
>>


<assign|scheme-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-\

1fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>\
>>


<assign|scilab-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-\

1fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>\
>>


<assign|shell-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1\

fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>>\
>


<assign|yacas-input|<macro|prompt|body|<surround|<resize|<arg|prompt>|||r-1\

fn||><space|1fn>|<htab|5mm><with|mode|math|>|<with|color|blue|<arg|body>>>>\
>

\;

<assign|output|<macro|body|<expand|<merge|<apply|prog
language>|-output>|<arg|body>>>>


<assign|bash-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|<w\
ith|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|gTybalt-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>\
|<with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|giac-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|<w\
ith|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|Macaulay2-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5f\
n>|<with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|maple-output|<macro|body|<surround|<vspace*|1fn>|<vspace|0fn>|<arg|\
body>>>>


<assign|mathemagix-output|<macro|body|<surround|<vspace*|1fn>|<vspace|0fn>|\
<arg|body>>>>


<assign|maxima-output|<macro|body|<surround|<vspace*|1fn>|<vspace|0fn>|<arg\
|body>>>>


<assign|mupad-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|<\
with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|mycas-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|<\
with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|octave-output|<macro|body|>surround|<vspace*|0.5fn>|<vspace|0.5fn>|\
<with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|pari-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|<w\
ith|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|qcl-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|<wi\
th|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|reduce-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|\
<with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|scheme-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|\
<with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|scilab-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|\
<with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|shell-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|<\
with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>


<assign|yacas-output|<macro|body|<surround|<vspace*|0.5fn>|<vspace|0.5fn>|<\
with|left margin|<plus|<apply|left margin>|1.5fn>|<arg|body>>>>>

\;

<assign|indent|<macro|body|<with|left margin|<plus|<apply|left
margin>|1.5fn>|<arg|body>>>>


<assign|algorithm|<macro|name|body|<surround|<vspace*|1fn>|<vspace|1fn>|<wi\
th|first indentation|0cm|<surround|<with|font series|bold|Algorithm
<with|font family|tt|<arg|name>>>||<with|item*|<macro|what|<with|font
series|bold|math font series|bold|<arg|what> >>|<arg|body>>>>>>>


<assign|body|<macro|body|<surround|<vspace*|0.5fn>||<with|item*|<macro|name\
|<vspace*|0.5fn><with|font series|bold|math font
series|bold|<arg|name>
>>|<arg|body>>>>>

\;

</body>

<\initial>
<\collection>
<associate|preamble|true>
<associate|odd page margin|30mm>
<associate|paragraph width|150mm>
<associate|shrinking factor|4>
<associate|page right margin|30mm>
<associate|page top margin|30mm>
<associate|reduction page right margin|25mm>
<associate|reduction page bottom margin|15mm>
<associate|page type|a4>
<associate|reduction page left margin|25mm>
<associate|even page margin|30mm>
<associate|page bottom margin|30mm>
<associate|reduction page top margin|15mm>
</collection>
</initial>









Archive powered by MHonArc 2.6.19.

Top of page