From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62084 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Re: Calling Lua function from an external package Date: Wed, 29 Sep 2010 15:35:18 +0200 Message-ID: References: <4CA33AB1.5080500@wxs.nl> <4CA33EB2.7050502@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285767337 5410 80.91.229.12 (29 Sep 2010 13:35:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2010 13:35:37 +0000 (UTC) Cc: Hans Hagen To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 29 15:35:35 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 1P0wop-0002E3-0w for gctc-ntg-context-518@m.gmane.org; Wed, 29 Sep 2010 15:35:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B8750CA769; Wed, 29 Sep 2010 15:35:34 +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 UKK4wYM2SMLW; Wed, 29 Sep 2010 15:35:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13068CA752; Wed, 29 Sep 2010 15:35:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA5EBCA752 for ; Wed, 29 Sep 2010 15:35:27 +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 1ctMr-wiMj29 for ; Wed, 29 Sep 2010 15:35:25 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id E9207CA74E for ; Wed, 29 Sep 2010 15:35:24 +0200 (CEST) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8TDZNJT022989 for ; Wed, 29 Sep 2010 15:35:23 +0200 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2); Wed, 29 Sep 2010 15:35:20 +0200 In-Reply-To: <4CA33EB2.7050502@elvenkind.com> User-Agent: Opera Mail/10.10 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; region=52; city=Prague; latitude=50.0833; longitude=14.4667; http://maps.google.com/maps?q=50.0833,14.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xDcBznVf - 5acfd2415580 - 20100929 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:62084 Archived-At: ... Thanks, it works now! It had to be fixed both in F() and in F2(). (I forgot ";" in MP statement as Lua doesn't require ";".) (Still it's a bit strange to me that calling F() worked even when the MP st= atement in F() was not finished by ";" and F2() was not called.) Lukas On Wed, 29 Sep 2010 15:27:14 +0200, Taco Hoekwater wro= te: > > > On 09/29/10 15:10, Hans Hagen wrote: >> On 29-9-2010 3:02, Proch=E1zka Luk=E1=B9 wrote: >>> Hello, >>> >>> I have the following problem. >>> >>> Let's have T~.lua file which defines a function: >> >> hm, what is this ~ doing there ... avoid such characters! ~ is HOME on >> some systems > > That is true of course, but the problem is much simpler than that: > > Make sure you end your metapost expressions with a semicolon. > > Best wishes, > Taco > > > _________________________________________________________________________= __________ > 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 > _________________________________________________________________________= __________ > -- = Ing. Luk=E1=B9 Proch=E1zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov=E1 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________