Am 04.09.2010 um 18:10 schrieb Chen Shen: > Hi Aditya, > > Thanks for the great module! > > There is a problem using t-vim/t-filter with the current and beta versions of > ConTeXt. > I was trying the Matlab example (tests/vim/matlab.tex), ConTeXt complains > that \startMATLAB is not defined, > but the execution can continue, and the correct pdf is produced. > > ! Undefined control sequence. > > system > error on line 7 in file test.tex: Undefined control > sequence ... > > 1 \setupcolors[state=start] > 2 \usemodule [vim] > 3 > 4 \definevimtyping [MATLAB] [syntax=matlab] > 5 > 6 \starttext > 7 >> \startMATLAB > 8 function russell_demo() > 9 % Do the example in ch 17 (p501) of Russell and Norvig > 10 % (1,1) is top left corner. > 11 r = 3; c = 4; p = 0.8; action_cost = -1/25; > 12 obstacle = zeros(r,c); obstacle(2,2)=1; > 13 terminal = zeros(r,c); terminal(1,4)=1; terminal(2,4)=1; > 14 absorb = 1; > 15 wrap_around = 0; > 16 noop = 0; > 17 T = mk_grid_world(r, c, p, obstacle, terminal, absorb, wrap_around, > noop); > > <argument> \v!unknwon
context’s error message is misleading, the problem appears with the \startMATLAB command but the undefined control sequence is “\v!unknwon” as shown below the message, it’s only a typo in the module and the correct value is “\v!unknown”. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________