Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] [Texmacs-dev] Octave plugin status

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] [Texmacs-dev] Octave plugin status


Chronological Thread 
  • From: "David E. Miller" <address@hidden>
  • To: Denis RAUX <address@hidden>
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] [Texmacs-dev] Octave plugin status
  • Date: Tue, 09 Apr 2013 23:11:30 -0400
  • Authentication-results: smtp03.embarq.synacor.com smtp.user=address@hidden; auth=pass (LOGIN)
  • X_cmae_category: 0,0 Undefined,Undefined

Hi Denis:

I have not been able to get the Octave plugin to work correctly on any version of TeXmacs up to and including 1.0.7.18. This includes the MS Windows, OS X, and GNU/Linux ports/packages. I use GNU/Linux 95% of the time. However, I am not familiar with the Octave installer package in the form of an executable that you reference below. I personally don't plan on using the MS Windows version of TeXmacs, and so I will probably not install any MS Windows Octave port again in any case. I plan to stay with GNU/Linux (Lubuntu is what I use) and forgo all of these extra compatibility issues.

However, I am interested in knowing whether or not the installer you reference modified the the PATH environment by adding the path to the Octave executable? The TeXmacs Octave plugin will not work at all if this is not done either by the user or by the installer. The Octave session will be missing or dead in that case.

It might be of value for you to send a email message to the user list with the URL link to the octave-3.6.2-vs2010-setup.exe you reference. The package i used was from a link located on the Octave project website page. It is not "painful," but it is "clumsy" by my way of thinking - certainly not a typical "click-and-go" executable installer program like you reference..

Also, thanks for the tip on the plugin modification. I have not tried this yet, but it looks like this addresses the Octave plugin anomaly I describe. I will let you know as soon as I get a chance to take a swing at this. If this modification fixes the issue, then this needs to be conveyed to the TeXmacs developers, and then hats off to you for fixing this.

I have been using Octave through the Oct2Py Python module from a TeXmacs Python plugin session. This has worked flawlessly so far, but a standalone Octave plugin that works correctly would be nice to have.

Best Wishes,

David Miller
PIckerington, Ohio
USA

On 4/5/2013 5:58 AM, Denis RAUX wrote:
It's completely right when i integrate a plugin in the windows version, i
make the very simple test 1 + 1. The main reasons are i have no idea how
they should work and no left time to dig. So a windows port must be similar
to the linux version.

Concerning the Octave installation, I fetched a true windows package with an
installer : octave-3.6.2-vs2010-setup.exe. I don't remember it was painful to
install. If you make the installation in the standard locations, texmacs must
find it automatically.

I didn't know anything about the plugins author intentions when he wrote it.
But if you want make Octave running with the test cases you gave, you have to
modify the tmrepl.m file located in C:\Program
Files\TeXmacs\plugins\octave\octave\™

function tmrepl()
prompt=sprintf("%cchannel:prompt%coctave> %c",2,5,5);
while ( 1 )
r=input(prompt,'s');
eval(r,"tmlasterr");
endwhile
endfunction


This should give to you :

octave> A = 1 + 2

A = 3
octave> B = [1,2,3]

B =

1 2 3

octave> 5 + 5

ans = 10


I hope this will be convenient.


Denis Raux




Le 18 mars 2013 à 20:06, David E. Miller a écrit :

Octave plugin status. The TeXmacs website says:

"The current Windows version of TeXmacs only supports a reduced set of plug-ins.
As of version 1.0.7.18, Maxima, Mathemagix, Octave, Pari and Python should run out of
the box after a standard installation."

From what I have experienced the Octave plugin is defective. This is the case for Linux, OS X
and MS Windows. It is the plugin and not the operating systems. Any reference to an Octave
expression using the Octave plugin from TeXmacs that involves a variable returns
"texmacs" and not the expected answer. Expressions with numbers only are okay, but
obviously this is not "running out of the box" as stated.

Also the phrase "standard installation" may be misleading. TeXmacs may have a standard
installation using MS Windows, but it is a stretch to describe the installation of the MS Windows
version of Octave as "standard" in any sense. The installation of Octave on MS Windows
requires a number of manual steps and configuration items before TeXmacs shows Octave as an
available plugin. This includes modification of the PATH environment variable. After successfully
jumping that hurdle (which is not documented anywhere), the plugin will start an Octave session
that does not work normally with the same symptoms whether using GNU/Linux, OS X, or MS Windows:

octave> A = [1,2,3]
texmacs

octave> 1+1
2

octave> sqrt(2)
1.4142

octave> a=sqrt(2)
texmacs


David Miller

_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev





Archive powered by MHonArc 2.6.19.

Top of Page