Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] python plugin

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] python plugin


Chronological Thread 
  • From: marc lalaude-labayle <address@hidden>
  • To: Miguel de Benito Delgado <address@hidden>
  • Cc: texmacs-users <address@hidden>
  • Subject: Re: [TeXmacs] python plugin
  • Date: Tue, 9 Sep 2014 00:28:34 +0200

Oups,

i forgot to say that the last compiled version seems to intend a python code wthout problem. Thank you Benito.

Marc

2014-09-09 0:21 GMT+02:00 marc lalaude-labayle <address@hidden>:
Ok, it works ! But with the 2.7 python version. I changed the env to python3 in the first line of /usr/local/libexec/TeXmacs/bin/tm_python file and this is what causes troubles ... I did this following the help of Benito and it worked lke a charm with my last compiled svn version.

Marc

2014-09-09 0:15 GMT+02:00 marc lalaude-labayle <address@hidden>:
Hi,

i compiled a fresh downloaded svn version a few minutes ago and ... python doesn't work anymore within texmacs. I am under ubuntu 13.10.

Did anyone make the same mistake and knows how to get the python plugin back to work ?

Thx.

Marc

2014-08-26 19:19 GMT+02:00 Miguel de Benito Delgado <address@hidden>:
Hi,

1. The code isn’t actually indented in the first snippet, it’s in fact a problem with the <\python> tag you are using. For code snippets you should use <\python-code>.

2. To have indentation, set the preference "editor:verbatim:tabstop" inside a scheme session:

 (set-preference "editor:verbatim:tabstop" 4)

I just committed a fix for this which sets the default value, thanks.

3. Now you can use c-tab, c-s-tab to indent/unindent. Automatic indentation after a colon should also work, if you have a fairly recent version of TeXmacs (around svn rev 8700)

Best,
-- 
Miguel de Benito Delgado.

On 22 August, 2014 at 01:13:11, marc lalaude-labayle (address@hidden) wrote:

Hi to all,

attached is a tm file showing my problem : i want to write some python codes and hopes to get the indentation working. But,
  1. after the "def blahblah:" i get the good indentation if am on the full left of the page as shown in the file
  2. i can't get any indentation within my function after anyuse of :


I read old messages about this plugin and it seemed to be fixed. Since i am using a compiled recent version, do you know how to get this automatic indentation ?

For the file, i used the 4 times spacebar to get the tab ...


Thx.


Marc








Archive powered by MHonArc 2.6.19.

Top of Page