ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?]
@ 2005-08-28  9:15 Taco Hoekwater
  2005-08-29  7:23 ` luigi.scarso
  0 siblings, 1 reply; 2+ messages in thread
From: Taco Hoekwater @ 2005-08-28  9:15 UTC (permalink / raw)
  Cc: kaffee24


Hi all,

Forwarding this from c.t.t. It looks like perhaps the OP's code
is correct and something in ConTeXt is wrong (at least I cannot
find anything wrong with the example code, even with
\setupcolors[state=start], I get no background color).
Perhaps somebody who has actually used table backgrounds can
help?

Taco


-------- Original Message --------
Subject: ConTEXt Newbie: Column/table background color - which table
model/command?
Date: 26 Aug 2005 08:39:16 -0700
From: A. Lucas <kaffee24@gmx.de>
Organization: http://groups.google.com
Newsgroups: comp.text.tex

I've only recently discovered ConTEXt and grabbed all the documentation
I could find (but not quite read it). My question:
If I want column background and line color, do I need METAPOST or is
there a simpler way to do it? I need a multi-page table with
continuous, but different columns widths and running headers on every
new page - could/must I use btable (XML environment)? The
\backgroundcolor and \background commands don't seem to work with
\setuptables and \starttable(s). Example:

-----------------
\placetable[here][tab:setuptables]{Ships that moored at Hasselt.}
{\setuptables[bodyfont=10pt,rulethickness=6pt,background=color,backgroundcolor=red]
\starttable[|cw(5cm)|cTw(3cm)|]%	'|' wird hier nicht gedruckt, dient
als column separator; mit w(...) width festsetzen
\HL%				horizontal line
\VL \bf Year \DC \bf Number of ships \VL\SR%		new colum bold font
seperate row
\HL
\VL 1645 \DC 450 \VL\FR%	first row
\VL 1671 \DC 480 \VL\MR%	mid row
\VL 1676 \DC 500 \VL\MR
\VL 1695 \DC 930 \VL\LR%	last row
\HL
\stoptable}
------------------

I get the thick border but no colors.
Maybe I'm just to dumb yet and will know more after a weekend of
reading up, but I'd be thankful for a hint.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?]
  2005-08-28  9:15 [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?] Taco Hoekwater
@ 2005-08-29  7:23 ` luigi.scarso
  0 siblings, 0 replies; 2+ messages in thread
From: luigi.scarso @ 2005-08-29  7:23 UTC (permalink / raw)


Taco Hoekwater wrote:

>
> Hi all,
>
> Forwarding this from c.t.t. It looks like perhaps the OP's code
> is correct and something in ConTeXt is wrong (at least I cannot
> find anything wrong with the example code, even with
> \setupcolors[state=start], I get no background color).
> Perhaps somebody who has actually used table backgrounds can
> help?
>
I hope this can help;
see chapter "Color and background" in cont-eni.pdf

%------------------
\setupcolors[state=start] %% useful: default=stop
\setupbackground[state=start] %% useless: default=start
\starttext
\placetable
{Just a table.}
%% from cont-eni.pdf  :``The command \background expects
%% an argument. Because a table is `grouped' it will generate
%% by itself and no extra braces are necessary.``
\background
\starttable[|c|c|c|]
\HL
\VL red    \VL green    \VL blue    \VL \AR
\VL cyan \VL magenta \VL yellow \VL \AR
\HL
\stoptable
\stoptext
%---------------------------

luigi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-29  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-28  9:15 [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?] Taco Hoekwater
2005-08-29  7:23 ` luigi.scarso

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).