Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks Hans for implementation and Sietse for wikifying. BTW: Wouldn't be better to enclose ConText source on wiki into rather than even if the source doesn't compile due to wiki-ConTeXt oldness? I believe one day the wiki-ConTeXt engine will be updated and so all examples with the curre

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-04 Thread Sietse Brouwer
http://wiki.contextgarden.net/Command/currentTABLErow http://wiki.contextgarden.net/Command/currentTABLEcolumn http://wiki.contextgarden.net/Command/nofTABLErows http://wiki.contextgarden.net/Command/nofTABLEcolumns A bit of cutting, a bit of pasting ... the six-year-old in me is happy. :-) --Sie

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-04 Thread Aditya Mahajan
On Tue, 4 Sep 2012, Hans Hagen wrote: I've added 4 status macros: \starttext \bTABLE \bTR \bTD (\currentTABLErow,\currentTABLEcolumn,\nofTABLErows,\nofTABLEcolumns) \eTD \bTD (\currentTABLErow,\currentTABLEcolumn,\nofTABLErows,\nofTABLEcolumns) \eTD \bTD (\currentTAB

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-04 Thread Hans Hagen
On 2-9-2012 20:58, Wolfgang Schuster wrote: Am 02.09.2012 um 17:59 schrieb Aditya Mahajan : Hi, On Edward Tufte's website, there is a discussion on zebra coloring in tables[1]. One of the suggestion is to add a horizontal rule after every third line or shade three lines with one background

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-03 Thread Aditya Mahajan
On Mon, 3 Sep 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Natural tables have “odd” and “even” keywords for \setupTABLE but none in the way you like it. What I would do is to use a overlay in combination with metapost to create the background but there is no global register to access t

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Natural tables have “odd” and “even” keywords for \setupTABLE but none in the way you like it. What I would do is to use a overlay in combination with metapost to create the background but there is no global register to access the current column/row of a cell, e.g. \currenttablecolumn (this nam

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Wolfgang Schuster
Am 03.09.2012 um 02:39 schrieb Aditya Mahajan : > If I need rules, I guess I can explicitly check for the value of > \m_tabl_ntb_postive_pow inside an overlay. This is a internal register and not meant for users, what we need is a real user level command to access the row and column counter fr

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Aditya Mahajan
On Sun, 2 Sep 2012, Procházka Lukáš wrote: On Sun, 02 Sep 2012 17:59:55 +0200, Aditya Mahajan wrote: Hi, On Edward Tufte's website, there is a discussion on zebra coloring in tables[1]. One of the suggestion is to add a horizontal rule after every third line or shade three lines with one bac

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Aditya Mahajan
On Sun, 2 Sep 2012, Wolfgang Schuster wrote: Am 02.09.2012 um 17:59 schrieb Aditya Mahajan : Hi, On Edward Tufte's website, there is a discussion on zebra coloring in tables[1]. One of the suggestion is to add a horizontal rule after every third line or shade three lines with one backgroun

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Procházka Lukáš
Hello, Lua solution: On Sun, 02 Sep 2012 17:59:55 +0200, Aditya Mahajan wrote: Hi, On Edward Tufte's website, there is a discussion on zebra coloring in tables[1]. One of the suggestion is to add a horizontal rule after every third line or shade three lines with one background color and the

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Wolfgang Schuster
Am 02.09.2012 um 17:59 schrieb Aditya Mahajan : > Hi, > > On Edward Tufte's website, there is a discussion on zebra coloring in > tables[1]. One of the suggestion is to add a horizontal rule after every > third line or shade three lines with one background color and the remaining > three with

[NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Aditya Mahajan
Hi, On Edward Tufte's website, there is a discussion on zebra coloring in tables[1]. One of the suggestion is to add a horizontal rule after every third line or shade three lines with one background color and the remaining three with another background color. Is there an easy way to do this