From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63595 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: tables and color Date: Wed, 17 Nov 2010 13:39:50 +0100 Message-ID: <4CE3CD16.3050405@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289997603 23607 80.91.229.12 (17 Nov 2010 12:40:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Nov 2010 12:40:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 17 13:39:59 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PIhIs-0005R7-QC for gctc-ntg-context-518@m.gmane.org; Wed, 17 Nov 2010 13:39:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C461BCA85F; Wed, 17 Nov 2010 13:39:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ldr4BL2tDBbI; Wed, 17 Nov 2010 13:39:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0BD90CA83A; Wed, 17 Nov 2010 13:39:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 83A35CA83A for ; Wed, 17 Nov 2010 13:39:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o1nwvvXHPNng for ; Wed, 17 Nov 2010 13:39:51 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 1D56CC9A8A for ; Wed, 17 Nov 2010 13:39:51 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAHCdoCu004927 for ; Wed, 17 Nov 2010 13:39:50 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 4.3g4) with ESMTP id 14813-1713362 for ; Wed, 17 Nov 2010 13:36:01 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 ThunderBrowse/3.3.2 X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDwcDOuJ - 00bfb040727d - 20101117 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:63595 Archived-At: Hi, A while ago Herbert reported problems with color in \starttable and Aditya suggested to provide \VL in \starttabulate. Also, there's some experimental coloring code in tabulate. So, I decided to add better color support to tabulate as well as vertical lines (for as far as it makes sense). Below you will see how the interface works. A side effect is that \NC[color] is no longer supported: we need 4 cases instead of one. Concerning \starttable: I started merging the patches into the TaBlE code but also started wondering if we should still provide this mechanism in \MKIV. I'm considering making it a module, and then remove the color options from it as it's a kludge anyway. Using thi smechanism has no real advantages over tabulate or TABLE (apart maybe from speed). I uploaded a new beta (which then will be synced with the minimals). % my test file: \starttext % \setuptabulate[distance=none] \starttabulate[|CR{red}|CC{yellow}|CM{green}|CL{blue}|] \NC test \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC test \NC \NR \stoptabulate \starttabulate[|CM{red}|CM{green}|CM{blue}|] \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \stoptabulate \ruledvbox{\starttabulate[||||][before=,after=] \NC test \CC[red] CC \NC test \NC \NR \NC test \CL[green] CL \NC test \NC \NR \NC test \CM[blue] CM \NC test \NC \NR \NC test \CR[yellow] CR \NC test \NC \NR \stoptabulate} \starttabulate[||||] \VL test \VL[red] CC \VL test \VL \NR \VL test \VL[green] CL \VL test \VL \NR \VL test \VL[blue] CM \VL test \VL \NR \VL test \VL[yellow] CR \VL test \VL \NR \stoptabulate \starttabulate[|{10,red}|{10,green}|{10,blue}|{10,magenta}] \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \stoptabulate \starttabulate[|{red}|{green}|{blue}|{magenta}] \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \stoptabulate \starttabulate[*{4}{|{red}}] \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \stoptabulate % \starttabulate[||p||] % \CC[green] test \CC[red] test \CC[blue] test \NC \NR % \NC \setlocalhsize \the\localhsize test \NC test \NC test \NC \NR % \HL % \NC test \CC[green] \input tufte \CC[yellow] test \NC \NR % \RC rc \NC test \NC test \NC \NR % \NC qqqq \EQ[blue] test \NC test \NC \NR % \NC test \NC test \NC test \NC \NR % \NC test \NC test \NC test \NC \NR % \CC[blue] test \CC[red] test \NC test \NC \NR % \NC test \VL[red] test \NC test \NC \NR % \NC test \VL test \NC test \NC \NR % \NC test \VL test \NC test \NC \NR % \NC test \VL test \CC[gray] test \NC \NR % \NC test \VL test \NC test \NC \NR % \NC test \VL test \NC test \NC \NR % \CC[blue] test \NC test \NC test \NC \NR % \NC test \NC test \NC test \NC \NR % \NC test \NC test \CC[magenta] test \NC \NR % \NC test \NC test \NC test \NC \NR % \NC test \CC[cyan] \dorecurse{10}{\input ward }\NC test \NC \NR % \NC test \NC test \NC test \NC \NR % \NC test \CC[yellow] test \NC test \NC \NR % \stoptabulate \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________