Re: [NTG-context] Undefined controle sequence with usemodule[vim]

2012-01-03 Thread Aditya Mahajan

On Wed, 3 Jan 2012, Aditya Mahajan wrote:


On Mon, 2 Jan 2012, pol stra wrote:



Hello everyone,
When I use t-vim module, I get this error message:

system  > tex > error on line 15 in file vim.tex: Undefined control 
sequence ...





for example with this code:

\usemodule[vim]

\definevimtyping[python][syntax=python, escape=on]
\starttext
\startpython
   # Returns \m{\sum_{i=1}^{n}i}
   def sum_upto(n)
   r = range(1, n+1)
   return sum(r)
\stoppython
\stoptext



This works fine with 2011.12.23. I'll update later to see why this is failing 
with 2011.12.31.


This was a bug introduced by the recent cleanup of code for filter and vim 
modules. Should work well with the latest version (2012.01.03).


Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Undefined controle sequence with usemodule[vim]

2012-01-02 Thread Aditya Mahajan

On Mon, 2 Jan 2012, pol stra wrote:



Hello everyone,


When I use t-vim module, I get this error message:

system  > tex > error on line 15 in file vim.tex: Undefined control 
sequence ...




for example with this code:

\usemodule[vim]

\definevimtyping[python][syntax=python, escape=on]
\starttext
\startpython
   # Returns \m{\sum_{i=1}^{n}i}
   def sum_upto(n)
   r = range(1, n+1)
   return sum(r)
\stoppython
\stoptext



This works fine with 2011.12.23. I'll update later to see why this is 
failing with 2011.12.31.


Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___