Re: [NTG-context] I do not get a highlighted header with M-database

2011-06-03 Thread Marco
On 2011-06-03 Cecil Westerhof cldwester...@gmail.com wrote:

 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]

Marco


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


Re: [NTG-context] I do not get a highlighted header with M-database

2011-06-03 Thread Mojca Miklavec
On Fri, Jun 3, 2011 at 18:23, Marco wrote:

 The example on the wiki is not exact.

You can use view source/edit to see the full source. Yes, it is a
tiny simplification.

Mojca
___
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
___


Re: [NTG-context] I do not get a highlighted header with M-database

2011-06-03 Thread Cecil Westerhof
2011/6/3 Marco net...@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
___