From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22634 Path: news.gmane.org!not-for-mail From: Otared KAVIAN Newsgroups: gmane.comp.tex.context Subject: Re: Number of rows in tables Date: Wed, 21 Sep 2005 15:45:37 +0200 Message-ID: <3cb063a60509210645528272cb@mail.gmail.com> References: Reply-To: Otared KAVIAN , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1127310369 19279 80.91.229.2 (21 Sep 2005 13:46:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2005 13:46:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 21 15:46:09 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 1EI4uw-00024S-M7 for gctc-ntg-context-518@m.gmane.org; Wed, 21 Sep 2005 15:45:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3DF36127E6; Wed, 21 Sep 2005 15:45:46 +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 04784-02; Wed, 21 Sep 2005 15:45:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DCD05127DC; Wed, 21 Sep 2005 15:45:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 62539127DC for ; Wed, 21 Sep 2005 15:45:39 +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 04664-04 for ; Wed, 21 Sep 2005 15:45:38 +0200 (CEST) Original-Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by ronja.ntg.nl (Postfix) with ESMTP id 4F178127A5 for ; Wed, 21 Sep 2005 15:45:38 +0200 (CEST) Original-Received: by zproxy.gmail.com with SMTP id 8so302280nzo for ; Wed, 21 Sep 2005 06:45:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GbAmgVMCfMOUhw123o53OKaOCQlg5rF4oKX5VV0TV0XK0oNgyPiP2wyVuNdtQoGETvvTzbWL98nHs3FdWAR7HIKpe6lzHYCrjF9zdzxIidMSzkY/Gy4W49XINy1QQb9PYTHniC3qQ16+3DcPnvee7iDcoqr72HM07w7eJ94ufc4= Original-Received: by 10.54.34.14 with SMTP id h14mr2495842wrh; Wed, 21 Sep 2005 06:45:37 -0700 (PDT) Original-Received: by 10.54.124.13 with HTTP; Wed, 21 Sep 2005 06:45:37 -0700 (PDT) Original-To: mailing list for ConTeXt users In-Reply-To: Content-Disposition: inline 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:22634 Archived-At: Hi everyone, Actually the solution to my own question is quite simple... :-) The appropriate use of \dorecurse does the thing: \setupcolors[state=3Dstart] \starttext % row 1 \setupTABLE[r][1][% style=3Dbold,background=3Dcolor,backgroundcolor=3Dgreen,align=3Dmiddle] \setupTABLE[c][1][width=3D3cm] % column 1 \setupTABLE[c][3][width=3D2.75cm] % column 3 \setupTABLE[c][4][width=3D7cm] \bTABLE \bTR =09\bTD Name \eTD =09\bTD Location \eTD =09\bTD Date \eTD =09\bTD Signature \eTD \eTR \dorecurse{25}{ %we repeat here 25 times creating a row \bTR =09\bTD\strut \eTD =09\bTD \eTD =09\bTD \eTD =09\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=3D15,number_of_columns=3D4] > > Thanks for your insight: OK > > %%%%%%%%%%%%%%%%%%%% Mojca's solution > \setupcolors[state=3Dstart] > \starttext > % row 1 > \setupTABLE[r][1] > [style=3Dbold,background=3Dcolor,backgroundcolor=3Dgreen,align=3Dmiddle] > \setupTABLE[c][1][width=3D3cm] % column 1 > \setupTABLE[c][3][width=3D2.75cm] % column 3 > \setupTABLE[c][4][width=3D7cm] > \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 > %%%%%%%%%%%%%%%%%%%%%%%%%%%% >