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. regards, shenchen Below is the log message: -------------------------------------------------- system : module vim loaded (t-vim.tex system : module filter loaded (t-filter.tex) color : system hex is loaded (/opt/home/hash/context/tex/texmf-context/tex/context/base/colo-hex.tex (/opt/home/hash/context/tex/texmf-context/tex/context/base/colo-hex.mkiv))) publications : loading formatting style from bxml-apa (/opt/home/hash/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file test.tex at line 6 ! 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); \v!unknwon \p!compareprocessaction ...]->\edef \!!stringb {#1 }\ifx \!!stringb \s!defaul... \next1 #1,->\p!doprocessaction {#1} \doprocesscommaitem \processnextcommalist ...odoprocesscommaitem #4#5, ]\relax \global \advance \... \dostartexternalfilter ...ter!!method \zerocount ] \doifelse {\externalfilter... l.7 \startMATLAB ? (test-externalfilter-MATLAB-0.vimout Overfull \hbox (30.53203pt too wide) in paragraph at lines 10--10 [][][]\*modern12pttttf* T = mk_grid_world(r, c, p, ob-sta-cle, ter-mi-nal, ab-sorb, wrap_around, noop); ---------- On Sun, Jun 27, 2010 at 11:49 PM, Aditya Mahajan wrote: > On Sun, 27 Jun 2010, Peter Münster wrote: > > On Sun, Jun 27 2010, Aditya Mahajan wrote: >> >> In the spirit of MkIV, I have attempted to redo the vim module from >>> scratch. >>> >>> http://github.com/adityam/filter >>> >>> Download t-vim.tex t-filter.tex and 2context.vim. For testing just place >>> them in the current directory. >>> >> >> Hello Aditya, >> >> Thanks for these great modules! It would be nice to make them available >> in >> the minimals! >> > > I will add them to the garden, once I the features stabalize a bit. > > 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 > > ___________________________________________________________________________________ > >