ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Florian Wobbe <Florian.Wobbe@awi.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: two problems with natural tables
Date: Mon, 11 Apr 2011 09:37:48 +0200	[thread overview]
Message-ID: <9D0C6580-6B3B-4084-A5B2-4A6A9B3970D2@awi.de> (raw)
In-Reply-To: <37486D4D-BE69-4D01-B807-17A5535C71E7@googlemail.com>

>> 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
___________________________________________________________________________________


  reply	other threads:[~2011-04-11  7:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-10 16:40 Florian Wobbe
2011-04-11  7:18 ` Wolfgang Schuster
2011-04-11  7:37   ` Florian Wobbe [this message]
2011-04-11  9:12     ` Wolfgang Schuster
2011-04-11  7:57 ` Florian Wobbe
2011-04-18 17:16 ` Wolfgang Schuster
2011-04-18 19:14   ` Hans Hagen
2011-04-20  7:30     ` Florian Wobbe
2012-01-18  4:19       ` Brian Landy
2012-01-18  5:31         ` Wrong placement parameter (Was: two problems with natural tables) Vladimir Lomov
2012-01-18  8:48           ` Hans Hagen
2012-01-18 11:29             ` luigi scarso
2012-01-18  8:47         ` two problems with natural tables Hans Hagen
2012-01-18 17:54           ` Brian R. Landy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9D0C6580-6B3B-4084-A5B2-4A6A9B3970D2@awi.de \
    --to=florian.wobbe@awi.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).