* I do not get a highlighted header with M-database
@ 2011-06-03 15:45 Cecil Westerhof
2011-06-03 16:23 ` Marco
0 siblings, 1 reply; 4+ messages in thread
From: Cecil Westerhof @ 2011-06-03 15:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
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?
--
Cecil Westerhof
[-- Attachment #2: dummy.tex --]
[-- Type: application/x-tex, Size: 374 bytes --]
[-- Attachment #3: dummy.pdf --]
[-- Type: application/pdf, Size: 8351 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I do not get a highlighted header with M-database
2011-06-03 15:45 I do not get a highlighted header with M-database Cecil Westerhof
@ 2011-06-03 16:23 ` Marco
2011-06-03 18:30 ` Mojca Miklavec
2011-06-04 1:48 ` Cecil Westerhof
0 siblings, 2 replies; 4+ messages in thread
From: Marco @ 2011-06-03 16:23 UTC (permalink / raw)
To: ntg-context
On 2011-06-03 Cecil Westerhof <cldwesterhof@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I do not get a highlighted header with M-database
2011-06-03 16:23 ` Marco
@ 2011-06-03 18:30 ` Mojca Miklavec
2011-06-04 1:48 ` Cecil Westerhof
1 sibling, 0 replies; 4+ messages in thread
From: Mojca Miklavec @ 2011-06-03 18:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I do not get a highlighted header with M-database
2011-06-03 16:23 ` Marco
2011-06-03 18:30 ` Mojca Miklavec
@ 2011-06-04 1:48 ` Cecil Westerhof
1 sibling, 0 replies; 4+ messages in thread
From: Cecil Westerhof @ 2011-06-04 1:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-04 1:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 15:45 I do not get a highlighted header with M-database Cecil Westerhof
2011-06-03 16:23 ` Marco
2011-06-03 18:30 ` Mojca Miklavec
2011-06-04 1:48 ` Cecil Westerhof
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).