From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67706 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: Re: two problems with natural tables Date: Mon, 11 Apr 2011 09:37:48 +0200 Message-ID: <9D0C6580-6B3B-4084-A5B2-4A6A9B3970D2@awi.de> References: <16614D98-D85B-4AE1-B4F3-4B7FA049B0C6@awi.de> <37486D4D-BE69-4D01-B807-17A5535C71E7@googlemail.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 1302507496 10363 80.91.229.12 (11 Apr 2011 07:38:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 07:38:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 11 09:38:12 2011 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 1Q9BhM-0007Yv-Rw for gctc-ntg-context-518@m.gmane.org; Mon, 11 Apr 2011 09:38:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB16DCABB7; Mon, 11 Apr 2011 09:38:11 +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 Z6FwJx+d+1BK; Mon, 11 Apr 2011 09:38:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6244BCABB0; Mon, 11 Apr 2011 09:38:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD58FCABB0 for ; Mon, 11 Apr 2011 09:38:07 +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 M2n-qBeGqYMr for ; Mon, 11 Apr 2011 09:37:56 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 811EACABAF for ; Mon, 11 Apr 2011 09:37:56 +0200 (CEST) Original-Received: from mails3.awi.de (mails3.awi.de [134.1.2.14]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3B7bt5n018040 for ; Mon, 11 Apr 2011 09:37:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id BDCC61118F8 for ; Mon, 11 Apr 2011 09:37:54 +0200 (MEST) X-Virus-Scanned: amavisd-new at awi.de Original-Received: from localhost ([127.0.0.1]) by localhost (mails3.awi.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 9H+XiwXLrIay for ; Mon, 11 Apr 2011 09:37:49 +0200 (MEST) Original-Received: from msg.awi.de (msg.awi.de [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id 9B7981118D0 for ; Mon, 11 Apr 2011 09:37:49 +0200 (MEST) Original-Received: from [192.168.22.12] ([unknown] [77.10.140.220]) by msg.awi.de (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTPSA id <0LJH0044Z971IO70@msg.awi.de> for ntg-context@ntg.nl; Mon, 11 Apr 2011 09:37:49 +0200 (MEST) In-reply-to: <37486D4D-BE69-4D01-B807-17A5535C71E7@googlemail.com> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=134.1.2.14; country=DE; region=03; city=Bremerhaven; latitude=53.5500; longitude=8.5833; http://maps.google.com/maps?q=53.5500,8.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08Eu7BT55 - 12dfbd70bc07 - 20110411 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:67706 Archived-At: >> 2) How do I get a small and bold header? This does not work: >> >> \bTABLE >> \setupTABLE[style=\tfx] >> \setupTABLE[row][1][style=\bfx] % redundant w/ line 5 >> \bTABLEhead >> \bTR[style=\bfx] \bTH Header \eTH \eTR >> \eTABLEhead >> \bTABLEbody >> \bTR \bTD hello \eTD \eTR >> \bTR \bTD world \eTD \eTR >> \eTABLEbody >> \eTABLE > > You mix too many setups, \bTH overwrites your setting for the row (\bTR[style=\tfx]) > and also your other setting (\setupTABLE[row][1][style=\bfx]). Here is one to separate > the style and the markup > > \startsetups table:style > \setupTABLE[start] [style=\tfx] > \setupTABLE[header][style=\bfx] > \stopsetups > > \starttext > > \bTABLE[setups=table:style] > \bTABLEhead > \bTR \bTD Header \eTD \eTR > \eTABLEhead > \bTABLEbody > \bTR \bTD Body \eTD \eTR > \eTABLEbody > \eTABLE > > \stoptext Thanks Wolfgang, so to make style=... also work on the header the trick was to change \bTH Header \eTH to \bTD Header \eTD. What is the purpose of \bTH \eTH then? BTW the Wiki says: "Please take account of the fact, that the head cells are enclosed by \bTH and \eTH (and not \[be]TC)." \bTH seems to only override style=... since "\bTD Header \eTD" is repeated correctly with \bTABLE[split=repeat,setups=table:style]. Florian ___________________________________________________________________________________ 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 ___________________________________________________________________________________