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 background color and the >> remaining three with another background color. >> >> Is there an easy way to do this with natural TABLEs? I can do something >> like: >> >> \setupTABLE[row][1,2,3][background=color, backgroundcolor=gray] >> \setupTABLE[row][7,8,9][background=color, backgroundcolor=gray] >> >> but it requires knowing the number of lines in advance. > > - it may be achieved by Lua, when the table has been defined as a Lua > variable: Thanks. This is useful when reading data from a file. Aditya