ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setting options for every n-th row in natural TABLEs
@ 2012-09-02 15:59 Aditya Mahajan
  2012-09-02 18:58 ` Wolfgang Schuster
  2012-09-02 19:56 ` Procházka Lukáš
  0 siblings, 2 replies; 12+ messages in thread
From: Aditya Mahajan @ 2012-09-02 15:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

Aditya

[1]: http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001IV
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-09-05  7:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-02 15:59 Setting options for every n-th row in natural TABLEs Aditya Mahajan
2012-09-02 18:58 ` Wolfgang Schuster
2012-09-03  0:39   ` Aditya Mahajan
2012-09-03  4:37     ` Wolfgang Schuster
2012-09-03  6:14   ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-03 14:40     ` Aditya Mahajan
2012-09-04 14:34   ` Hans Hagen
2012-09-04 15:21     ` Aditya Mahajan
2012-09-04 17:33       ` Sietse Brouwer
2012-09-05  7:01         ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-02 19:56 ` Procházka Lukáš
2012-09-03  0:41   ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).