From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63422 Path: news.gmane.org!not-for-mail From: Manfred Lotz Newsgroups: gmane.comp.tex.context Subject: Re: table background color in first row Date: Thu, 11 Nov 2010 20:40:55 +0100 Message-ID: <20101111204055.275acdf5@arcor.com> References: <20101111194414.38552cb1@arcor.com> <113D46C8-CCB0-4295-9420-32927C72F0EE@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289504504 2862 80.91.229.12 (11 Nov 2010 19:41:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2010 19:41:44 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 11 20:41:40 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGd1e-0007qK-Ey for gctc-ntg-context-518@m.gmane.org; Thu, 11 Nov 2010 20:41:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD32ACA86E; Thu, 11 Nov 2010 20:41:37 +0100 (CET) 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 Kn3qJ4yXOLOK; Thu, 11 Nov 2010 20:41:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DD094CA854; Thu, 11 Nov 2010 20:41:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A1E6CA854 for ; Thu, 11 Nov 2010 20:41:32 +0100 (CET) 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 xwcWctZLYWZe for ; Thu, 11 Nov 2010 20:41:21 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id A53B1CA84D for ; Thu, 11 Nov 2010 20:41:21 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oABJfKnM025590 for ; Thu, 11 Nov 2010 20:41:21 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PGd1J-0007ar-QR for ntg-context@ntg.nl; Thu, 11 Nov 2010 20:41:17 +0100 Original-Received: from dslb-084-058-013-250.pools.arcor-ip.net ([84.58.13.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Nov 2010 20:41:17 +0100 Original-Received: from manfred.lotz by dslb-084-058-013-250.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Nov 2010 20:41:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 83 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-058-013-250.pools.arcor-ip.net X-Newsreader: Claws Mail 3.7.6 (GTK+ 2.22.0; x86_64-unknown-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07DtTFkR9 - 706fbbc39d16 - 20101111 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63422 Archived-At: Hi Wolfgang, On Thu, 11 Nov 2010 20:13:22 +0100 Wolfgang Schuster wrote: > > Am 11.11.2010 um 19:44 schrieb Manfred Lotz: > > > Hi there, > > > > I have s simple table like this: > > > > \starttext > > > > \starttable[|l|l|] > > \NC \bf Colheader 1 \NC \bf Colheader 2 \NC \SR \HL > > \NC cell 11 \NC cell 12 \NC \FR > > \NC cell 11 \NC cell 12 \NC \LR > > \stoptable > > > > \stoptext > > > > and like to have a light gray background for the heading row. > > > > I found documentation about \setupTABLE which on the one hand I did > > not fully understand how to use and on the other hand I'm not quite > > sure how far this is the way it is done nowadays. > > The \setupTABLE command for the natural tables environment, you can > find a overview of the different environments on the wiki. > > Here is a example for a natural table: > > \starttext > > \setupTABLE[header][style=bold,background=color,backgroundcolor=gray] > > \bTABLE > \bTABLEhead > \bTR > \bTD Colheader 1 \eTD > \bTD Colheader 2 \eTD > \eTR > \eTBALEhead > \bTABLEbody > \bTR > \bTD cell 11 \eTD > \bTD cell 12 \eTD > \eTR > \bTR > \bTD cell 21 \eTD > \bTD cell 22 \eTD > \eTR > \eTABLEbody > \eTABLE > > \stoptext > Thanks for your example which works fine but raises some more questions: 1. Your example creates borders around each cell which I don't want to have. Any way to get rid of them? 2. It seems to me that \setupTABLE creates a shading for the header for all tables in a document?! That is ok. However, I'd like to know what would be the variant to have it only for a single table? 3. How does this \bTABLE stuff compare to the \starttable stuff? Are these just different methods to create tables which are both in use these days in context or is one method to be preferred over the other? -- Thanks, Manfred ___________________________________________________________________________________ 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 ___________________________________________________________________________________