From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75979 Path: news.gmane.org!not-for-mail From: Sander Maijers Newsgroups: gmane.comp.tex.context Subject: m-database: setting text style for every first line of a table, and text/cell style for specific parts of the table? Date: Sat, 5 May 2012 22:20:49 +0200 Message-ID: <20120505222049.57a973fb@sander-H57M-USB3> References: <4F329535.3030409@ziggo.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336249260 6742 80.91.229.3 (5 May 2012 20:21:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 May 2012 20:21:00 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat May 05 22:21:00 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SQlTL-0007f7-TP for gctc-ntg-context-518@m.gmane.org; Sat, 05 May 2012 22:20:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 156C4101EA; Sat, 5 May 2012 22:20:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IZPcJ4qt-gZM; Sat, 5 May 2012 22:20:52 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53D9B101E1; Sat, 5 May 2012 22:20:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3E00F101E1 for ; Sat, 5 May 2012 22:20:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WdPFgvSdHFg5 for ; Sat, 5 May 2012 22:20:50 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 858D8101CF for ; Sat, 5 May 2012 22:20:50 +0200 (CEST) Original-Received: from smtpout1.ru.nl (smtpout1.ru.nl [131.174.66.174]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q45KKmLt010775 for ; Sat, 5 May 2012 22:20:49 +0200 X-Virus-Scanned: by AMaViS & ClamAV Original-Received: from sander-H57M-USB3 (vhe-le16f112.sshn.net [195.169.226.169]) by smtp.ru.nl (Postfix) with ESMTP id 8BA341D0A75 for ; Sat, 5 May 2012 22:20:48 +0200 (CEST) In-Reply-To: <4F329535.3030409@ziggo.nl> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; x86_64-unknown-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.174.66.174; country=CA; region=ON; city=Ottawa; postalcode=k1s2e5; latitude=45.4167; longitude=-75.7000; http://maps.google.com/maps?q=45.4167,-75.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RH6kkMF8 - e8c39874c071 - 20120505 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:75979 Archived-At: Hello everyone, I did manage to get a background color for the first row. This is a snippet that I use \defineseparatedlist [CSV] [separator=comma, first={\bTR[align=middle,background=color,backgroundcolor=gray]},last=\eTR, left=\bTD,right=\eTD, before={\bTABLE[align=middle]},after=\eTABLE] \processseparatedfile[CSV][/tmp/CSV.csv] Also, can you think of a way to specify the cell and text style for individual cells with processseparatedfile? Regards, Sander Maijers ___________________________________________________________________________________ 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 ___________________________________________________________________________________