From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62030 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Stefan_M=FCller?= Newsgroups: gmane.comp.tex.context Subject: Custom lua script (updating and debugging) Date: Tue, 28 Sep 2010 12:41:29 +0200 Message-ID: <4CA1C659.5030502@gmx.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285670553 16519 80.91.229.12 (28 Sep 2010 10:42:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Sep 2010 10:42:33 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 28 12:42: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 1P0Xdn-00035Q-Mm for gctc-ntg-context-518@m.gmane.org; Tue, 28 Sep 2010 12:42:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46900CA6BD; Tue, 28 Sep 2010 12:42: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 AVLh3fyusuAd; Tue, 28 Sep 2010 12:42:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62AAFCA6DE; Tue, 28 Sep 2010 12:42:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5FA7BCA6DE for ; Tue, 28 Sep 2010 12:42:26 +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 shPS5PV3-JcN for ; Tue, 28 Sep 2010 12:42:24 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 5E294CA6BD for ; Tue, 28 Sep 2010 12:42:24 +0200 (CEST) Original-Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id o8SAgNmE024317 for ; Tue, 28 Sep 2010 12:42:23 +0200 Original-Received: (qmail invoked by alias); 28 Sep 2010 10:42:22 -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; 28 Sep 2010 12:42:22 +0200 X-Authenticated: #11064435 X-Provags-ID: V01U2FsdGVkX1+LDkYzRdKLlgV+XPEo8sbTgXvshlR1NAuOA0q502 05JiDthtDO5RSm 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: 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: 08DcaGnqR - 8dad3ad40824 - 20100928 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:62030 Archived-At: Hi list, I'm currently messing around with a custom lua script (a pretty printer) and I have some beginner trouble. First: I put the file in "MyContexDir\tex\texmf\tex\context\base\". What do I have to do to let ConTeXt work with the script and to let ConTeXt know that something has changed in the script? Is "context --generate" enough (after initializing with "setuptex.bat")? Second: How can I debug errors in my *.lua file? Just put print("debug message") in the function that is (supposed to be) called? Any help appreciated and thanks in advance! Stefan ___________________________________________________________________________________ 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 ___________________________________________________________________________________