From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78052 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Setting options for every n-th row in natural TABLEs Date: Sun, 2 Sep 2012 20:41:31 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-552711769-1346632892=:2975" X-Trace: ger.gmane.org 1346632903 724 80.91.229.3 (3 Sep 2012 00:41:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2012 00:41:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 03 02:41:43 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T8KjW-0002cq-9H for gctc-ntg-context-518@m.gmane.org; Mon, 03 Sep 2012 02:41:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BD64F1020B; Mon, 3 Sep 2012 02:41:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IYCPQaup0utb; Mon, 3 Sep 2012 02:41:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CF76A101F0; Mon, 3 Sep 2012 02:41:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB8A6101F0 for ; Mon, 3 Sep 2012 02:41:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YOmUS7Ld+HV8 for ; Mon, 3 Sep 2012 02:41:35 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 30D6B101DF for ; Mon, 3 Sep 2012 02:41:35 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q830fXFg011563 for ; Mon, 3 Sep 2012 02:41:34 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096679445.dsl.bell.ca [65.94.0.21]) By hackers.mr.itd.umich.edu ID 5043FCBC.78297.29191 ; Authuser adityam; 2 Sep 2012 20:41:32 EDT In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03HSoFyGi - af820fe0fe5a - 20120903 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78052 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-552711769-1346632892=:2975 Content-Type: TEXT/PLAIN; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 2 Sep 2012, Proch=E1zka Luk=E1=B9 wrote: > On Sun, 02 Sep 2012 17:59:55 +0200, Aditya Mahajan wr= ote: > >> Hi, >>=20 >> 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. >>=20 >> Is there an easy way to do this with natural TABLEs? I can do something >> like: >>=20 >> \setupTABLE[row][1,2,3][background=3Dcolor, backgroundcolor=3Dgray] >> \setupTABLE[row][7,8,9][background=3Dcolor, backgroundcolor=3Dgray] >>=20 >> 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=20 > variable: Thanks. This is useful when reading data from a file. Aditya --8323328-552711769-1346632892=:2975 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-552711769-1346632892=:2975--