From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17510 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Directions to use the new table format. Date: Tue, 14 Dec 2004 11:07:04 +0100 Message-ID: <41BEBB48.9050707@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1103018834 7562 80.91.229.6 (14 Dec 2004 10:07:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2004 10:07:14 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 11:07:05 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ce9aD-0007De-00 for ; Tue, 14 Dec 2004 11:07:05 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E959127A6; Tue, 14 Dec 2004 11:07:04 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02354-04; Tue, 14 Dec 2004 11:07:00 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2EAD21279B; Tue, 14 Dec 2004 11:07:00 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE1DF1279B for ; Tue, 14 Dec 2004 11:06:58 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02363-03-3 for ; Tue, 14 Dec 2004 11:06:58 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 32EC312799 for ; Tue, 14 Dec 2004 11:06:58 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iBEA6uo6004852 for ; Tue, 14 Dec 2004 11:06:56 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 33A1217BF4; Tue, 14 Dec 2004 11:06:56 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id D067817B57 for ; Tue, 14 Dec 2004 10:06:54 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17510 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17510 Dirar BOUGATEF wrote: > Hi all, > > I think that Hans is more concerned by this one ... > > Having looked at all the tables ways to make tables within context, i > think, that learning the last one (linetable) to do things is more > appropriate because it summarises the functionnalities of all the others > (hence, less headaches and a smaller lurning curve). > > Can anyone give just a few lines of directions to start using this mode > (The wiki example is too small to learn from) or at least some words > about how to use the implementation file which is core-ltb.tex to > understand how things work (This is gonna be very helpful to all > Contexters). very undocumented indeed; i made this module for a project long ago but never came to documenting it; \starttable \setuplinetable[n=6,lines=40] \setuplinetable[c][1] [width=2cm,background=color,backgroundcolor=red] \setuplinetable[c][4] [width=3cm,background=color,backgroundcolor=yellow] \setuplinetable[c][6] [width=3cm,background=color,backgroundcolor=magenta] \setuplinetable[r][odd] [background=color,backgroundcolor=gray] \setuplinetable[r][even][background=color,backgroundcolor=green] \starttext \showframe \showstruts \setupcolors[state=start] \setuppagenumbering[alternative=doublesided]\page[left] \startlinetable \dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR \dorecurse{100}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR} \stoplinetable \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------