From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22164 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?] Date: Sun, 28 Aug 2005 11:15:19 +0200 Message-ID: <431180A7.9080409@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1125220659 19543 80.91.229.2 (28 Aug 2005 09:17:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Aug 2005 09:17:39 +0000 (UTC) Cc: kaffee24@gmx.de Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 28 11:17:34 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9JHM-0003vB-Vl for gctc-ntg-context-518@m.gmane.org; Sun, 28 Aug 2005 11:16:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 02D86127C2; Sun, 28 Aug 2005 11:16:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08134-05; Sun, 28 Aug 2005 11:16:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A3AD112797; Sun, 28 Aug 2005 11:16:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A884412797 for ; Sun, 28 Aug 2005 11:16:34 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08252-08-2 for ; Sun, 28 Aug 2005 11:16:33 +0200 (CEST) Original-Received: from post-24.mail.nl.demon.net (post-24.mail.nl.demon.net [194.159.73.194]) by ronja.ntg.nl (Postfix) with ESMTP id B89E912775 for ; Sun, 28 Aug 2005 11:16:33 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:33943 helo=[192.168.1.3]) by post-24.mail.nl.demon.net with esmtp (Exim 4.51) id 1E9JHF-000H3s-DE; Sun, 28 Aug 2005 09:16:33 +0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20050215) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22164 Archived-At: 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 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.