From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62098 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Stefan_M=FCller?= Newsgroups: gmane.comp.tex.context Subject: Re: Custom lua script (updating and debugging) Date: Wed, 29 Sep 2010 19:47:54 +0200 Message-ID: <4CA37BCA.7020801@gmx.de> References: <201009281608.24932.alan.braslau@cea.fr> <4CA25BB3.4060808@wxs.nl> <201009282353.40541.warrence.stm@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285782544 17572 80.91.229.12 (29 Sep 2010 17:49:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2010 17:49:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 29 19:49:03 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 1P10m4-0006Lw-PL for gctc-ntg-context-518@m.gmane.org; Wed, 29 Sep 2010 19:49:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2578FCA77B; Wed, 29 Sep 2010 19:49:00 +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 rn+oXkIVw283; Wed, 29 Sep 2010 19:48:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06A5CCA752; Wed, 29 Sep 2010 19:48:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06EA8CA752 for ; Wed, 29 Sep 2010 19:48:56 +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 0t+DyDV7fhuF for ; Wed, 29 Sep 2010 19:48:53 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 380A5CA751 for ; Wed, 29 Sep 2010 19:48:53 +0200 (CEST) Original-Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id o8THmqI7025128 for ; Wed, 29 Sep 2010 19:48:52 +0200 Original-Received: (qmail invoked by alias); 29 Sep 2010 17:48:51 -0000 Original-Received: from 77-64-199-171.dynamic.primacom.net (EHLO [192.168.100.108]) [77.64.199.171] by mail.gmx.net (mp031) with SMTP; 29 Sep 2010 19:48:51 +0200 X-Authenticated: #11064435 X-Provags-ID: V01U2FsdGVkX18kp21r/gkk8ymQvI6yt3SPMiuGzvxgsuU5J5150U xIGLdkFgv07QQd User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: <201009282353.40541.warrence.stm@gmx.de> X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DcFMQv3 - 6971b8117dde - 20100929 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:62098 Archived-At: Sorry for replying to the wrong thread... I just wanted to say that it works now. I justed started again from = scratch and did the same as below. No idea what caused the trouble. Thanks again, Stefan. On 28.09.2010 23:53, Stefan M=FCller wrote: > Hi, > > thanks for the fast reply Mojca! Unfortunately it is still not working. H= ere > is what I did. I'm afraid it has possibly more to do with pretty printers= in > particular (than lua scripts in general), but actually I have no idea. > > I took the file > MyConTeXtDir/tex/texmf-context/tex/context/base/pret-lua.lua > and copied it to > MyConTeXtDir/tex/texmf-local/tex/context/user/pret-pas.lua > Next I replaced every occurance of "lua" in this new file by "pas" (so th= is > changed the name of one function and renamed the visualizer itself). Then= I > ran "context --generate". > > My testfile is added below. The "end" is typeset as if pret-pas.lua would= n't > exist. If I change "option=3DPAS" to "option=3DLUA" it works as intended = ("end" is > green). What is going on here? Any help is appreciated. > > \installprettytype[PAS][PAS] > \setupcolors[state=3Dstart] > \setuptyping[option=3Dcolor] > \definetyping[PAS][option=3DPAS, escape=3Dyes, tab=3D4, numbering=3Dline] > > \starttext \startPAS > end > \stopPAS \stoptext > > Thanks in advance, > Stefan. > > PS: Additional question: Is it possible to integrate "option=3Dcolor" int= o the > "\definetyping[PAS]"? option=3D{PAS,color}? > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________