From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61464 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: vim syntax highlighting in MKIV Date: Sat, 4 Sep 2010 19:15:09 +0200 Message-ID: <24874AF3-12FC-464E-991C-AD4A74819C33@gmail.com> References: <4C251E90.3050808@wxs.nl> <20100627113643.GA3650@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283620537 27172 80.91.229.12 (4 Sep 2010 17:15:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Sep 2010 17:15:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 04 19:15:32 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OrwKy-0007fJ-9s for gctc-ntg-context-518@m.gmane.org; Sat, 04 Sep 2010 19:15:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D55B3CA611; Sat, 4 Sep 2010 19:15:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id B28l5qtSLmNB; Sat, 4 Sep 2010 19:15:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D86B5CA600; Sat, 4 Sep 2010 19:15:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E6396CA600 for ; Sat, 4 Sep 2010 19:15:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id guD5Np2R4LgT for ; Sat, 4 Sep 2010 19:15:13 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 2E889CA5FF for ; Sat, 4 Sep 2010 19:15:13 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o84H8RW3002821 for ; Sat, 4 Sep 2010 19:08:27 +0200 Original-Received: by fxm3 with SMTP id 3so2273210fxm.14 for ; Sat, 04 Sep 2010 10:15:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=M24m223ZCx4yZraMgvCVtoe/3hFd2VqLDHs6GC4IyzQ=; b=owGqMEMKc0+8WmDLg2ybsTjT/W5DgA+bQfYK84P7WJ6jYaCC3aPGKUapT8oIDC/2ft KeN2FH5+inVwUxVqipSj+bNJsfWikGeh7MZBfWCey4e/4bmOf2RTNeVMM8FJpGvotKuQ EHkhw9lDgAlbReEiUkNccdFORrYnJSU4iTI1E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=AgT/V2oJ3vIE2+YPrqk+XNsVXK1shyxPTJrDyomnwrK2HyY5FTd7AsUNslxX9vBHeg B7ihYRE1MyEPmvu+ntYgtil7QdGGM4Z20J5eKKJuZ3IR4Z0AdxNB2Y7YOeKB1DFMdC5w gEpCP4HYNC/RWzBC0/gROFpnLM3aIHG03rhjE= Original-Received: by 10.223.105.76 with SMTP id s12mr1146393fao.107.1283620511373; Sat, 04 Sep 2010 10:15:11 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B2960E4.dip.t-dialin.net [91.41.96.228]) by mx.google.com with ESMTPS id f28sm1505568faa.24.2010.09.04.10.15.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 04 Sep 2010 10:15:10 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aD2F8rgJ - a25b26be732b - 20100904 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61464 Archived-At: 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 version= s 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 seq= uence ... > = > 1 \setupcolors[state=3Dstart] > 2 \usemodule [vim] > 3 = > 4 \definevimtyping [MATLAB] [syntax=3Dmatlab] > 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 =3D 3; c =3D 4; p =3D 0.8; action_cost =3D -1/25; > 12 obstacle =3D zeros(r,c); obstacle(2,2)=3D1; > 13 terminal =3D zeros(r,c); terminal(1,4)=3D1; terminal(2,4)=3D1; > 14 absorb =3D 1; > 15 wrap_around =3D 0; > 16 noop =3D 0; > 17 T =3D mk_grid_world(r, c, p, obstacle, terminal, absorb, wrap_arou= nd, noop); > = > \v!unknwon = context=92s error message is misleading, the problem appears with the \star= tMATLAB command but the undefined control sequence is =93\v!unknwon=94 as shown bel= ow the message, it=92s only a typo in the module and the correct value is =93\v!unknown=94. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________