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 | [EMAIL PROTECTED]
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
-------------------------------------------------------------------------