From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22642 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Re: Number of rows in tables Date: Wed, 21 Sep 2005 19:32:37 +0200 Message-ID: <43319935.5050109@boede.nl> References: <3cb063a60509210645528272cb@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.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 1127324289 6089 80.91.229.2 (21 Sep 2005 17:38:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2005 17:38:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 21 19:37:56 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EI8W1-0004Ky-Ry for gctc-ntg-context-518@m.gmane.org; Wed, 21 Sep 2005 19:36:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8A12B12780; Wed, 21 Sep 2005 19:36:17 +0200 (CEST) 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 07059-03; Wed, 21 Sep 2005 19:36:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 54D5F12788; Wed, 21 Sep 2005 19:32:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0EBD12788 for ; Wed, 21 Sep 2005 19:32:43 +0200 (CEST) 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 07059-01 for ; Wed, 21 Sep 2005 19:32:42 +0200 (CEST) Original-Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by ronja.ntg.nl (Postfix) with ESMTP id A6D3D12780 for ; Wed, 21 Sep 2005 19:32:42 +0200 (CEST) Original-Received: from [192.168.0.193] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) (authenticated bits=0) by smtp-vbr10.xs4all.nl (8.13.3/8.13.3) with ESMTP id j8LHWdXk016518; Wed, 21 Sep 2005 19:32:39 +0200 (CEST) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: Otared KAVIAN , mailing list for ConTeXt users In-Reply-To: <3cb063a60509210645528272cb@mail.gmail.com> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22642 Archived-At: Hi Otared, I just started reading your previous mail and started to type you your own solution. So that is in your case the best way to do it! Willi Otared KAVIAN wrote: >Hi everyone, > >Actually the solution to my own question is quite simple... :-) >The appropriate use of \dorecurse does the thing: > >\setupcolors[state=start] >\starttext >% row 1 >\setupTABLE[r][1][% >style=bold,background=color,backgroundcolor=green,align=middle] >\setupTABLE[c][1][width=3cm] % column 1 >\setupTABLE[c][3][width=2.75cm] % column 3 >\setupTABLE[c][4][width=7cm] >\bTABLE >\bTR > \bTD Name \eTD > \bTD Location \eTD > \bTD Date \eTD > \bTD Signature \eTD >\eTR >\dorecurse{25}{ %we repeat here 25 times creating a row >\bTR > \bTD\strut \eTD > \bTD \eTD > \bTD \eTD > \bTD \eTD >\eTR} >\eTABLE >\stoptext > >On 9/21/05, Otared Kavian wrote: > > >>Hi everyone, >> >>In the process of learning the table mechanism I followed the >>discussions on the list, but could not figure out whether it is >>possible to create a table with a given number of rows. For instance, >>is it possible to add something to Mojca's solution for cells with >>backgrounds (see below) to have a table with (for example) 15 rows? >>Something like >>\setupTable[number_of_rows=15,number_of_columns=4] >> >>Thanks for your insight: OK >> >>%%%%%%%%%%%%%%%%%%%% Mojca's solution >>\setupcolors[state=start] >>\starttext >>% row 1 >>\setupTABLE[r][1] >>[style=bold,background=color,backgroundcolor=green,align=middle] >>\setupTABLE[c][1][width=3cm] % column 1 >>\setupTABLE[c][3][width=2.75cm] % column 3 >>\setupTABLE[c][4][width=7cm] >>\bTABLE >>\bTR >> \bTD Name \eTD >> \bTD Location \eTD >> \bTD Date \eTD >> \bTD Signature \eTD >>\eTR >>\bTR >> \bTD\strut \eTD >> \bTD \eTD >> \bTD \eTD >> \bTD \eTD >>\eTR >>\eTABLE >>\stoptext >>%%%%%%%%%%%%%%%%%%%%%%%%%%%% >> >> >> >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > >