From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66342 Path: news.gmane.org!not-for-mail From: Daniel Lyons Newsgroups: gmane.comp.tex.context Subject: Re: TaBlE from Lua Date: Wed, 23 Feb 2011 18:45:47 -0700 Message-ID: <330D6A41-0B03-4ECF-917E-6A50064375B5@storytotell.org> References: <20110223230738.GD9491@clanspum.net> <20110224011613.GA5149@orcus> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298511996 30838 80.91.229.12 (24 Feb 2011 01:46:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 01:46:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 24 02:46:32 2011 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 1PsQHl-0000H8-DE for gctc-ntg-context-518@m.gmane.org; Thu, 24 Feb 2011 02:46:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6D17CAA5D; Thu, 24 Feb 2011 02:46:28 +0100 (CET) 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 YRJSbyweZq50; Thu, 24 Feb 2011 02:46:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9231ECAA4F; Thu, 24 Feb 2011 02:46:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB281CAA4F for ; Thu, 24 Feb 2011 02:46:14 +0100 (CET) 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 lkxAnueVe-DV for ; Thu, 24 Feb 2011 02:45:52 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 4D35BCAA34 for ; Thu, 24 Feb 2011 02:45:52 +0100 (CET) Original-Received: from mail.clanspum.net (twopir-2-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:1b9::2]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1O1joOf025581 for ; Thu, 24 Feb 2011 02:45:51 +0100 Original-Received: from [192.168.2.5] (71-37-159-72.albq.qwest.net [71.37.159.72]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.clanspum.net (Postfix) with ESMTPSA id 3D24017C2CF for ; Wed, 23 Feb 2011 19:47:18 -0600 (CST) In-Reply-To: <20110224011613.GA5149@orcus> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: No geolocation information available for 2001:470:1f10:1b9::2 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03EbBJOpi - 09037709371e - 20110224 X-Scanned-By: CanIt (www . roaringpenguin . com) on IPv6:2001:610:1:80ab:192:87:102:72 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:66342 Archived-At: On Feb 23, 2011, at 6:16 PM, Philipp Gesang wrote: > On 2011-02-23 <17:07:38>, Daniel Lyons wrote: >> Is there a convenient way to create TaBlE tables from Lua? If so, >> where can I read about it? > = > Good evening, Daniel! > = > [-1] Isn=92t TaBlE deprecated? I didn't know that! > [0] If you aim for convenience, wouldn=92t you rather want to > switch to \[start|stop]tabulate? Its syntax is very similar > and there are a few examples to learn from in the context > source code. My particular situation is a bit more involved. I want to put SQL in my Con= TeXt source and have it run it against my database and format the result ni= cely in my document. I think I see how to do it, I just need to be able to = take the parsed output and make the visually appealing table. > [1] I don=92t know how your table structure looks like, but the > example 1 can be a starting point, assuming a 2dimensional > table where all rows have the same element count: It's not going to be too fancy, just headers and rows with the same number = of columns on each line. I do want to be able to control how they get align= ed but otherwise nothing interesting. > [2] Item example 2, but using the cld interface > . > = > Put both files in the same directory and run =93context=94 on > table.tex to build the examples. Thanks! =97 = Daniel Lyons ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________