From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48054 Path: news.gmane.org!not-for-mail From: Arthur Reutenauer Newsgroups: gmane.comp.tex.context Subject: Re: \dorecurse and \recurselevel in Natural Tables Date: Fri, 6 Mar 2009 14:32:11 +0100 Message-ID: <20090306133211.GA24990@phare.normalesup.org> 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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236346500 1589 80.91.229.12 (6 Mar 2009 13:35:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2009 13:35:00 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 06 14:36:16 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LfaDm-0004AQ-6A for gctc-ntg-context-518@m.gmane.org; Fri, 06 Mar 2009 14:36:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8ADB21FB71; Fri, 6 Mar 2009 14:34:34 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08405-04; Fri, 6 Mar 2009 14:34:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECCC31FA4C; Fri, 6 Mar 2009 14:33:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 024771FA4C for ; Fri, 6 Mar 2009 14:33:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13135-02-2 for ; Fri, 6 Mar 2009 14:32:21 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id 8FA051FA41 for ; Fri, 6 Mar 2009 14:32:13 +0100 (CET) Original-Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n26DWCVs018037 for ; Fri, 6 Mar 2009 14:32:13 +0100 Original-Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id n26DWBuu089185 for ; Fri, 6 Mar 2009 14:32:11 +0100 (CET) X-Envelope-To: Original-Received: by phare.normalesup.org (Postfix, from userid 1008) id 7F2B7BC0A0; Fri, 6 Mar 2009 14:32:11 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.1.4 (nef2.ens.fr [129.199.96.32]); Fri, 06 Mar 2009 14:32:11 +0100 (CET) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.199.96.40; country=FR; region=A8; city=Paris; latitude=48.8667; longitude=2.3333; http://maps.google.com/maps?q=48.8667,2.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 189672766 - 3a1003685758 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48054 Archived-At: > Do I pick up any beginners book on Lua? There really is only one beginners book on Lua :-) _Programming in Lua_, by Roberto Ierusalimschy, the Lua author. There are a few other books, mostly about "Lua and games", because Lua has become quite popular in the gamers' community, but Roberto's book is really excellent and makes a good tutorial. > For example, one of the lines in the code is > > tprint = function(s) tex.sprint(tex.ctxcatcodes,s) end > > Is this Lua or LuaTex? The question does not really makes sense if you put it that way. This line of code is pure Lua, it is completely syntactically correct; but you can't use as it a standalone Lua script, because it uses functions that only LuaTeX and ConTeXt define (think of it as the action of "import" in Python, except that here it's not available as a stand-alone library call; it's built into LuaTeX). Hence, if you want to become proficient in Lua programming in ConTeXt, you need to learn: * The Lua programming language, with its core libraries (covered in the aforementioned book). * The Lua libraries that LuaTeX adds to Lua, documented in the LuaTeX manual. * The Lua libraries that ConTeXt adds to LuaTeX. The above line of code is really a mixture of the three, but in any case, the ground stone is always Lua. Arthur ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________