ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Undefined controle sequence with usemodule[vim]
@ 2012-01-02 17:16 pol stra
  2012-01-03  5:55 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: pol stra @ 2012-01-02 17:16 UTC (permalink / raw)
  To: conteXt mail


[-- Attachment #1.1: Type: text/plain, Size: 665 bytes --]


Hello everyone,


When I use t-vim module, I get this error message:
<error msg>
system          > tex > error on line 15 in file vim.tex: Undefined control sequence ...

</error msg>


for example with this code:
<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
</code>



But as you can see, there is no line 15 in this file !


Anyway, I can just ignore the error and get the output, but that’s not good.


I attached the log file.
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 1049 bytes --]

[-- Attachment #2: vim.log --]
[-- Type: application/octet-stream, Size: 19942 bytes --]

(vim.tex

ConTeXt  ver: 2011.12.31 18:06 MKIV  fmt: 2012.1.2  int: english/english

system          > cont-new.mkiv loaded
(/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > vim.top loaded

system          > options > start used options

used options    > % runtime options files (command line driven)
used options    > \unprotect
used options    > % feedback and basic job control
used options    > % handy for special styles
used options    > \startluacode
used options    > document = document or { }
used options    > document.arguments={
used options    > }
used options    > document.files={
used options    >  "vim.tex",
used options    > }
used options    > \stopluacode
used options    > % process info
used options    > \setupsystem[inputfile=vim.tex]
used options    > \setupsystem[\c!n=1,\c!m=1]
used options    > % modes
used options    > % options (not that important)
used options    > \startsetups *runtime:options
used options    > \stopsetups
used options    > % styles and modules
used options    > \startsetups *runtime:modules
used options    > \stopsetups
used options    > % done
used options    > \protect \endinput

system          > options > stop used options

(vim.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'vim'
(/opt/context-minimals/texmf-modules/tex/context/third/vim/t-vim.tex
loading         > Vim syntax highlighting (ver: 2011.12.18)
resolvers       > modules > loaded: 'filter'
(/opt/context-minimals/texmf-modules/tex/context/third/filter/t-filter.mkiv
loading         > Filter (ver: 2011.12.27)
resolvers       > modules > loaded: 'module-catcodes'
(/opt/context-minimals/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
loading         > Module Catcodes (ver: 2011.12.17)
))
resolvers       > modules > loaded: 'syntax-highlight'
(/opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv
loading         > Code syntax highlighting (ver: 2011.12.17)
resolvers       > modules > loaded: 'syntax-groups'
(/opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
loading         > Syntax highlighting groups (ver: 2011.12.17)
! Undefined control sequence.

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

 5     # Returns \m{\sum_{i=1}^{n}i}
 6     def sum_upto(n)
 7         r = range(1, n+1)
 8         return sum(r)
 9     \stoppython
10     \stoptext
11     

<argument> \s 
              
\rawprocesscommacommand ...rawprocesscommalist [#1
                                                  ]}
\system_modes_check ...rawprocesscommacommand [#3]
                                                  \system_modes_check_step \...
l.15 \doifmode\s
                !mkii
? h
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
? 
colors          > unknown system hex
resolvers       > modules > already loaded: 'module-catcodes'
)
resolvers       > modules > already loaded: 'filter'
)){/opt/context-minimals/texmf-fonts/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
(/opt/context-minimals/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context-minimals/texmf-context/tex/context/base/type-otf.mkiv)
files           > readfile > asked name: 'loc', not found
{/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-math.map}{/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
t-filter        > command : vim -u NONE --noplugin -e -s -C -n -c "set tabstop=4" -c "syntax on" -c "set syntax=python" -c "let contextstartline=1" -c "let contextstopline=0" -c "let strip=0" -c "let escapecomments=1" -c "let highlight=[]" -c "source /opt/context-minimals/texmf-modules/tex/context/third/vim/2context.vim" -c "qa" vim-temp-python-0.tmp vim-temp-python-0.vimout
(vim-temp-python-0.vimout)
backend         > xmp > using file '/opt/context-minimals/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
 ){/opt/context-minimals/texmf-fonts/fonts/enc/dvips/lm/lm-mathit.enc}</opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman9-regular.otf>{/opt/context-minimals/texmf-fonts/fonts/enc/dvips/lm/lm-mathex.enc}</opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmmono12-regular.otf></opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman12-regular.otf></opt/context-minimals/texmf-fonts/fonts/type1/public/lm/lmex10.pfb></opt/context-minimals/texmf-fonts/fonts/type1/public/lm/lmmi12.pfb></opt/context-minimals/texmf-fonts/fonts/type1/public/lm/lmmi9.pfb>

system          > files > start used files

used files      >    1: filename=mult-mps.lua | filetype=tex | format=tex | foundname=/opt/context-minimals/texmf-context/tex/context/base/mult-mps.lua | usedmethod=database
used files      >    2: filename=vim.tex | foundname=vim.tex | usedmethod=direct
used files      >    3: filename=cont-new.mkiv | filetype=tex | foundname=/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files      >    4: filename=vim.top | foundname=vim.top | usedmethod=direct
used files      >    5: filename=lang-us.lua | filetype=lua | foundname=/opt/context-minimals/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files      >    6: filename=t-vim.tex | filetype=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=database
used files      >    7: filename=t-vim.tex | filetype=tex | format=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=database
used files      >    8: filename=opt/context-minimals/texmf-modules/tex/context/third/vim/t-vim.tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=qualified
used files      >    9: filename=t-filter.mkiv | filetype=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=database
used files      >   10: filename=t-filter.mkiv | filetype=tex | format=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=database
used files      >   11: filename=opt/context-minimals/texmf-modules/tex/context/third/filter/t-filter.mkiv | foundname=/opt/context-minimals/texmf-modules/tex/context/third/filter/t-filter.mkiv | usedmethod=qualified
used files      >   12: filename=t-module-catcodes.tex | filetype=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=database
used files      >   13: filename=t-module-catcodes.tex | filetype=tex | format=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=database
used files      >   14: filename=opt/context-minimals/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/filter/t-module-catcodes.tex | usedmethod=qualified
used files      >   15: filename=t-syntax-highlight.mkiv | filetype=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=database
used files      >   16: filename=t-syntax-highlight.mkiv | filetype=tex | format=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=database
used files      >   17: filename=opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv | usedmethod=qualified
used files      >   18: filename=t-syntax-groups.tex | filetype=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=database
used files      >   19: filename=t-syntax-groups.tex | filetype=tex | format=tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=database
used files      >   20: filename=opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | foundname=/opt/context-minimals/texmf-modules/tex/context/third/vim/t-syntax-groups.tex | usedmethod=qualified
used files      >   21: filename=mkiv-base.map | filetype=map | format=map | foundname=/opt/context-minimals/texmf-fonts/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database
used files      >   22: filename=type-siz.mkiv | filetype=tex | foundname=/opt/context-minimals/texmf-context/tex/context/base/type-siz.mkiv | usedmethod=database
used files      >   23: filename=type-otf.mkiv | filetype=tex | foundname=/opt/context-minimals/texmf-context/tex/context/base/type-otf.mkiv | usedmethod=database
used files      >   24: filename=lm-math.lfg | filetype=tex | foundname=/opt/context-minimals/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database
used files      >   25: filename=lm-math.map | filetype=map | format=map | foundname=/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-math.map | usedmethod=database
used files      >   26: filename=lm-rm.map | filetype=map | format=map | foundname=/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-rm.map | usedmethod=database
used files      >   27: filename=lmroman12-regular | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files      >   28: filename=lmroman7-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman7-regular.otf | usedmethod=database
used files      >   29: filename=rm-lmr7.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/rm-lmr7.tfm | usedmethod=database
used files      >   30: filename=lmmi7.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmmi7.tfm | usedmethod=database
used files      >   31: filename=lmsy7.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmsy7.tfm | usedmethod=database
used files      >   32: filename=lmex10.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmex10.tfm | usedmethod=database
used files      >   33: filename=msam7.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/amsfonts/symbols/msam7.tfm | usedmethod=database
used files      >   34: filename=msbm7.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/amsfonts/symbols/msbm7.tfm | usedmethod=database
used files      >   35: filename=stmary10.afm | filetype=afm | format=afm | foundname=/opt/context-minimals/texmf-fonts/fonts/afm/public/stmaryrd/stmary10.afm | usedmethod=database
used files      >   36: filename=stmary10.pfb | filetype=pfb | format=pfb | foundname=/opt/context-minimals/texmf-fonts/fonts/type1/public/stmaryrd/stmary10.pfb | usedmethod=database
used files      >   37: filename=lmroman7-bold.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman7-bold.otf | usedmethod=database
used files      >   38: filename=lmmib7.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmmib7.tfm | usedmethod=database
used files      >   39: filename=lmsans8-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmsans8-regular.otf | usedmethod=database
used files      >   40: filename=lmmono8-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmmono8-regular.otf | usedmethod=database
used files      >   41: filename=eufm7.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/amsfonts/euler/eufm7.tfm | usedmethod=database
used files      >   42: filename=eufb7.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/amsfonts/euler/eufb7.tfm | usedmethod=database
used files      >   43: filename=lmroman9-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman9-regular.otf | usedmethod=database
used files      >   44: filename=rm-lmr9.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/rm-lmr9.tfm | usedmethod=database
used files      >   45: filename=lmmi9.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmmi9.tfm | usedmethod=database
used files      >   46: filename=lmsy9.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmsy9.tfm | usedmethod=database
used files      >   47: filename=msam10.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/amsfonts/symbols/msam10.tfm | usedmethod=database
used files      >   48: filename=msbm10.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/amsfonts/symbols/msbm10.tfm | usedmethod=database
used files      >   49: filename=lmroman9-bold.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman9-bold.otf | usedmethod=database
used files      >   50: filename=lmmib10.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmmib10.tfm | usedmethod=database
used files      >   51: filename=lmsans9-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmsans9-regular.otf | usedmethod=database
used files      >   52: filename=lmmono9-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmmono9-regular.otf | usedmethod=database
used files      >   53: filename=eufm10.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/amsfonts/euler/eufm10.tfm | usedmethod=database
used files      >   54: filename=eufb10.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/amsfonts/euler/eufb10.tfm | usedmethod=database
used files      >   55: filename=lmroman12-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files      >   56: filename=rm-lmr12.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/rm-lmr12.tfm | usedmethod=database
used files      >   57: filename=lmmi12.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmmi12.tfm | usedmethod=database
used files      >   58: filename=lmsy10.tfm | filetype=tfm | format=tfm | foundname=/opt/context-minimals/texmf-fonts/fonts/tfm/public/lm/lmsy10.tfm | usedmethod=database
used files      >   59: filename=lmroman12-bold.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmroman12-bold.otf | usedmethod=database
used files      >   60: filename=lmsans12-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmsans12-regular.otf | usedmethod=database
used files      >   61: filename=lmmono12-regular.otf | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files      >   62: filename=vim-temp-python-0.vimout | foundname=vim-temp-python-0.vimout | usedmethod=direct
used files      >   63: filename=lmmono12-regular | filetype=otf | format=otf | foundname=/opt/context-minimals/texmf-fonts/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files      >   64: filename=lpdf-pdx.xml | filetype=tex | foundname=/opt/context-minimals/texmf-context/tex/context/base/lpdf-pdx.xml | usedmethod=database
used files      >   65: filename=lm-mathit.enc | filetype=enc | format=enc | foundname=/opt/context-minimals/texmf-fonts/fonts/enc/dvips/lm/lm-mathit.enc | usedmethod=database
used files      >   66: filename=lm-mathex.enc | filetype=enc | format=enc | foundname=/opt/context-minimals/texmf-fonts/fonts/enc/dvips/lm/lm-mathex.enc | usedmethod=database
used files      >   67: filename=lmex10.pfb | filetype=pfb | format=pfb | foundname=/opt/context-minimals/texmf-fonts/fonts/type1/public/lm/lmex10.pfb | usedmethod=database
used files      >   68: filename=lmmi12.pfb | filetype=pfb | format=pfb | foundname=/opt/context-minimals/texmf-fonts/fonts/type1/public/lm/lmmi12.pfb | usedmethod=database
used files      >   69: filename=lmmi9.pfb | filetype=pfb | format=pfb | foundname=/opt/context-minimals/texmf-fonts/fonts/type1/public/lm/lmmi9.pfb | usedmethod=database

system          > files > stop used files


system          > structure > start used structure

used structure  > text: vim

system          > structure > stop used structure


mkiv lua stats  > used config file          - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - /home/thesarch/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats  > resource resolver         - loadtime 0.057 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 69 found files, scanned paths: 
mkiv lua stats  > stored bytecode data      - 301 modules, 65 tables, 366 chunks
mkiv lua stats  > cleaned up reserved nodes - 51 nodes, 9 lists of 426
mkiv lua stats  > node memory usage         - 2 glue, 2 penalty, 9 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 6 instances (re)created, 2624 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules        - 5 requested, 5 found (*-filter *-module-catcodes *-syntax-groups *-syntax-highlight *-vim), 0 missing
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > jobdata time              - 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks                 - 2781 direct, 4279 indirect, 7060 total
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls
mkiv lua stats  > result saved in file      - vim.pdf
mkiv lua stats  > loaded fonts              - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time           - 0.441 seconds 
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011051918 (rev 4277)
mkiv lua stats  > control sequences         - 32519 of 65536 + 100000
mkiv lua stats  > current memory usage      - 49 MB (ctx: 50 MB)
mkiv lua stats  > runtime                   - 153.294 seconds, 1 processed pages, 1 shipped pages, 0.007 pages/second


[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Undefined controle sequence with usemodule[vim]
  2012-01-02 17:16 Undefined controle sequence with usemodule[vim] pol stra
@ 2012-01-03  5:55 ` Aditya Mahajan
  2012-01-03 11:23   ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2012-01-03  5:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 2 Jan 2012, pol stra wrote:

>
> Hello everyone,
>
>
> When I use t-vim module, I get this error message:
> <error msg>
> system          > tex > error on line 15 in file vim.tex: Undefined control sequence ...
>
> </error msg>
>
>
> for example with this code:
> <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
> </code>

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Undefined controle sequence with usemodule[vim]
  2012-01-03  5:55 ` Aditya Mahajan
@ 2012-01-03 11:23   ` Aditya Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2012-01-03 11:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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:
>> <error msg>
>> system          > tex > error on line 15 in file vim.tex: Undefined control 
>> sequence ...
>> 
>> </error msg>
>> 
>> 
>> for example with this code:
>> <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
>> </code>
>
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-03 11:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-02 17:16 Undefined controle sequence with usemodule[vim] pol stra
2012-01-03  5:55 ` Aditya Mahajan
2012-01-03 11:23   ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).