From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9457 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Natural Tables ? Date: Wed, 02 Oct 2002 20:21:02 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20021002201843.028d2588@server-1> References: <20021002145633.GA8297@merkur.econ.muni.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399779 3222 80.91.224.250 (23 Oct 2002 19:02:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:02:59 +0000 (UTC) Cc: konference o ConTeXtu Original-Received: from hermes.hrz.uni-giessen.de (hermes.hrz.uni-giessen.de [134.176.2.15]) by osiris.hrz.uni-giessen.de (8.11.6+Sun/8.11.6) with ESMTP id g92IOQj18603 for ; Wed, 2 Oct 2002 20:24:26 +0200 (MEST) Original-Received: from smail.let.uu.nl by hermes.hrz.uni-giessen.de with ESMTP for Guenter.Partosch@hrz.uni-giessen.de; Wed, 2 Oct 2002 20:24:22 +0200 Original-Received: by smail.let.uu.nl (8.9.3/8.9.3/JEvW) id UAA16518 for ntg-context-list; Wed, 2 Oct 2002 20:23:58 +0200 (MET DST) X-Authentication-Warning: smail.let.uu.nl: majordom set sender to owner-ntg-context@let.uu.nl using -f Original-Received: from spider.let.uu.nl (spider.let.uu.nl [131.211.194.47]) by smail.let.uu.nl (8.9.3/8.9.3/JEvW) with ESMTP id UAA16513 for ; Wed, 2 Oct 2002 20:23:53 +0200 (MET DST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by spider.let.uu.nl (8.11.2/8.11.2/SYSADM) with ESMTP id g92INq223369 for ; Wed, 2 Oct 2002 20:23:52 +0200 (MEST) Original-Received: from server-1.pragma-ade.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.net (Solcon-specific/) with ESMTP id g92INfA22113; Wed, 2 Oct 2002 20:23:41 +0200 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-ade.nl (8.12.2/8.12.2) with ESMTP id g92INmgi018566; Wed, 2 Oct 2002 20:23:48 +0200 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: AlterEgo Qasars In-Reply-To: <20021002145633.GA8297@merkur.econ.muni.cz> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail) Precedence: bulk Xref: main.gmane.org gmane.comp.tex.context:9457 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9457 At 04:56 PM 10/2/2002 +0200, AlterEgo Qasars wrote: >Good evening. > >I started to typeset some tables using Natural Tables. It is an excelent >poweful tool. I really like. But: Is it possible to do something like >this: > >\setupTABLE[last][1,2][background={color,tabulka7}] >\setupTABLE[last][last][background={color,tabulka9}] > >It seems to be quite natural to me, but it doesn't work (with my version >of ConTeXt ver: 2001.9.14 fmt: 2002.4.20 int: english mes: english > >How can I do it? (Meaning the cells in the last column and the first and >the second row, and the cell in the right bottom of the table >respectively.) so, in addition to odd|even|first|last|all|number by rows|columns you want even more? replace this in core-ntb: \def\setupTBLcell#1#2% cell over col over row {\setupTBLsection % here ? \getvalue{\@@tblprefix\c!y\v!elk}% \getvalue{\@@tblprefix\c!x\v!elk}% \getvalue{\@@tblprefix\c!y\v!oddeven{#1}}% \getvalue{\@@tblprefix\c!x\v!oddeven{#2}}% \getvalue{\@@tblprefix\c!x\v!oddeven{#2}\c!y\v!oddeven{#1}}% \ifnum#1=\plusone \getvalue{\@@tblprefix\c!y\v!eerste }\fi \ifnum#2=\plusone \getvalue{\@@tblprefix\c!x\v!eerste }\fi \ifnum#1=\maximumrow\relax\getvalue{\@@tblprefix\c!y\v!laatste}\fi \ifnum#2=\maximumcol\relax\getvalue{\@@tblprefix\c!x\v!laatste}\fi \ifnum#1=\maximumrow\relax\ifnum#2=\maximumcol\relax \getvalue{\@@tblprefix\c!x\v!laatste\c!y\v!laatste}% \fi\fi \ifnum#1=\plusone \ifnum#2=\plusone \getvalue{\@@tblprefix\c!x\v!eerste\c!y\v!eerste}% \fi\fi \getvalue{\@@tblprefix\c!y#1}% \getvalue{\@@tblprefix\c!x#2}% \getvalue{\@@tblprefix\c!x#2\c!y#1}\relax} you're lucky that this is not a slow-downer Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------