mailing-list for TeXmacs Users

Text archives Help


[TeXmacs] python plugin


Chronological Thread 
  • From: marc lalaude-labayle <address@hidden>
  • To: texmacs-users <address@hidden>
  • Subject: [TeXmacs] python plugin
  • Date: Fri, 22 Aug 2014 01:12:52 +0200

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

<TeXmacs|1.99.2>

<style|<tuple|exam|french>>

<\body>
  <section|titre>

  <\python>
    def DivEuc(a,b):

    #assert((a\<gtr\>=0) and (b\<gtr\>0))

    r=a

    q=0

    while r\<gtr\>=b:

    \ \ \ \ r=r-b

    \ \ \ \ q=q+1

    return q,r
  </python>

  \;

  <section|titre>

  ici une ligne

  <\python>
    def DivEuc(a,b):

    #assert((a\<gtr\>=0) and (b\<gtr\>0))

    r=a

    q=0

    while r\<gtr\>=b:

    \ \ \ \ r=r-b

    \ \ \ \ q=q+1

    return q,r
  </python>
</body>

<\references>
  <\collection>
    <associate|auto-1|<tuple|1|?>>
    <associate|auto-2|<tuple|2|?>>
  </collection>
</references>

<\auxiliary>
  <\collection>
    <\associate|toc>
      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>titre>
      <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-1><vspace|0.5fn>
    </associate>
  </collection>
</auxiliary>



Archive powered by MHonArc 2.6.19.

Top of page