From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78049 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Setting options for every n-th row in natural TABLEs Date: Sun, 2 Sep 2012 20:58:01 +0200 Message-ID: <461190EC-4251-4CCE-8F75-F78EA878BC56@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1346612309 21308 80.91.229.3 (2 Sep 2012 18:58:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2012 18:58:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 02 20:58:30 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 1T8FNO-0006zF-AD for gctc-ntg-context-518@m.gmane.org; Sun, 02 Sep 2012 20:58:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F7B310201; Sun, 2 Sep 2012 20:58:27 +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 xqpnu41o-pVx; Sun, 2 Sep 2012 20:58:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B3290101F0; Sun, 2 Sep 2012 20:58:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D941101F0 for ; Sun, 2 Sep 2012 20:58:23 +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 9UlDYAiFCPI8 for ; Sun, 2 Sep 2012 20:58:21 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E01C5101DF for ; Sun, 2 Sep 2012 20:58:21 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q82IwKnk013171 for ; Sun, 2 Sep 2012 20:58:21 +0200 Original-Received: by bkcjc3 with SMTP id jc3so2229405bkc.14 for ; Sun, 02 Sep 2012 11:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=+Al8dlTb4DkAyxctrlQOBL8FCLf1iTsQ4yi02OoHf2w=; b=clVRTKYh6gkMqFQllcI+NvdfMjjTG9JnVgHGb6fRjTR+BwkN0NAhdcRNvc9l6hlgPv zril8xDloj21mlYYFCtGF2dwD6naZBoBAv8CGeqeL2ZwDfU+4ThRkA5qCEgjHk4ppPm+ WcLubOx9ilfKGEEp7rbhvfY+XNU5FcMrXAmLV3+BOR4vPmWzIaCy0zYSns68BdSxcKsy KRIsQA9LpDSG8IApz9VAxT0IazyMnIERCPcZUhflgghnDEhWfwVlZlBaH39kZ+jgACFP M81j2IXq2AVMNcKIZh+YLdfinKYR3qQPvPTyyQ9rNsJnqL/gnxQ4mtMbSLwqqs9pFqv+ HXhQ== Original-Received: by 10.205.117.141 with SMTP id fm13mr6166993bkc.125.1346612300249; Sun, 02 Sep 2012 11:58:20 -0700 (PDT) Original-Received: from [10.51.229.127] ([82.113.106.127]) by mx.google.com with ESMTPS id n5sm6435362bkv.14.2012.09.02.11.58.08 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 02 Sep 2012 11:58:19 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1486) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VHSiWk6T - 1e62ec3f9bb5 - 20120902 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:78049 Archived-At: Am 02.09.2012 um 17:59 schrieb Aditya Mahajan : > Hi, > = > On Edward Tufte's website, there is a discussion on zebra coloring in tab= les[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 thre= e with another background color. > = > Is there an easy way to do this with natural TABLEs? I can do something l= ike: > = > \setupTABLE[row][1,2,3][background=3Dcolor, backgroundcolor=3Dgray] > \setupTABLE[row][7,8,9][background=3Dcolor, backgroundcolor=3Dgray] > = > but it requires knowing the number of lines in advance. > = > Aditya > = > [1]: http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=3D0001IV Natural tables have =93odd=94 and =93even=94 keywords for \setupTABLE but n= one in the way you like it. What I would do is to use a overlay in combinat= ion 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 = name is already used by tables) and \currenttablerow. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________