ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Cecil Westerhof <cldwesterhof@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: I do not get a highlighted header with M-database
Date: Sat, 4 Jun 2011 03:48:00 +0200	[thread overview]
Message-ID: <BANLkTimuWFs9fyw_5LG1etEi=A0-PB8XHg@mail.gmail.com> (raw)
In-Reply-To: <20110603182323.3cea1e84@glyph>

2011/6/3 Marco <netuse@lavabit.com>:
>> I looked at the example at:
>>     http://wiki.contextgarden.net/M-database
>>
>> In this  example the first  row is highlighted.  I tried
>> something  like that,  but I  do not  get a  highlighted
>> first row.  I attached my  tex and  pdf file. What  am I
>> doing wrong?
>
> The example on the wiki is not exact. You have to tell the
> system what  you want  to do  with the  first row,  how to
> highlight. Here's a starting point:
>
>
> \startsetups Table:NT
>  \setupTABLE [r] [first] [
>    background=color,
>    backgroundcolor=darkgray,
>    color=white,
>    style=bold]
> \stopsetups
>
>
> \defineseparatedlist
>  [MyTable]
>  [separator=tab,
>   left=\bTD,right=\eTD,
>   first=\bTR,last=\eTR,
>   setups=Table:NT,
>   before=\bTABLE,after=\eTABLE]

Works. Thanks.

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


      parent reply	other threads:[~2011-06-04  1:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-03 15:45 Cecil Westerhof
2011-06-03 16:23 ` Marco
2011-06-03 18:30   ` Mojca Miklavec
2011-06-04  1:48   ` Cecil Westerhof [this message]

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='BANLkTimuWFs9fyw_5LG1etEi=A0-PB8XHg@mail.gmail.com' \
    --to=cldwesterhof@gmail.com \
    --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).