From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77046 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: xtable Date: Fri, 22 Jun 2012 12:48:21 +0200 Message-ID: <6938F1F6-EB3A-42AB-A074-43343D6EBCD2@googlemail.com> References: <22CCD7B9-816E-43E2-9AA7-1021E6EDE03E@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340362121 31856 80.91.229.3 (22 Jun 2012 10:48:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2012 10:48:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 22 12:48:40 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 1Si1Ps-0000Bj-8T for gctc-ntg-context-518@m.gmane.org; Fri, 22 Jun 2012 12:48:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC35E101FE; Fri, 22 Jun 2012 12:48:39 +0200 (CEST) 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 hrD3DPO+KINT; Fri, 22 Jun 2012 12:48:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 01984101EC; Fri, 22 Jun 2012 12:48:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B94BE101EC for ; Fri, 22 Jun 2012 12:48:36 +0200 (CEST) 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 pMG6J3WRax46 for ; Fri, 22 Jun 2012 12:48:35 +0200 (CEST) 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 E16C2101EB for ; Fri, 22 Jun 2012 12:48:35 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5MAmVnR003291 for ; Fri, 22 Jun 2012 12:48:32 +0200 Original-Received: by bkcjm19 with SMTP id jm19so1786302bkc.14 for ; Fri, 22 Jun 2012 03:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=aD5s6v6voLgdSoF9yzSB40EV/iY486hL6PuwkxXLOiY=; b=oQhSCyu90N8CiiCuRNT03jY417DK7ky6U9qkU4loWXMsyc05e2mW7/d5hU5Mq61ZdW u2xVcuzQejeDdP9/cZyHcAL19Dv5NI69b52no3dmg4xFiRoHC67NBmzdjOFvb/BDvb9+ uLr4VjscudZMCnRWZ9nFuhaS0EXcTS91v9ulIPEl+2LG1Rj28rcxfg5yTMILJrnJ6Fxk +7Asr1GezNLU/kNMXNfgTXANi1nngmBNSOxDDSMSPmZ1+tQWHKnQqs6jt3XdKOVm5+B1 g3dZ9qY1y9NuzeEhKzFWCSmxzjxciqnLY+1sme1xsiVLdrXW5CU5Ezj6PZ3UBGX8h7Np jUMA== Original-Received: by 10.204.10.70 with SMTP id o6mr584712bko.70.1340362111687; Fri, 22 Jun 2012 03:48:31 -0700 (PDT) Original-Received: from [192.168.2.36] (p54BAF425.dip.t-dialin.net. [84.186.244.37]) by mx.google.com with ESMTPS id h18sm35504745bkh.8.2012.06.22.03.48.28 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jun 2012 03:48:30 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QHpmMwsq - 3ad153478683 - 20120622 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:77046 Archived-At: Am 22.06.2012 um 12:00 schrieb Meer, H. van der: > = > On 22 jun. 2012, at 10:53, Wolfgang Schuster wrote: > = >> = >> Am 21.06.2012 um 16:27 schrieb Meer, H. van der: >> = >>> Can one put individual horizontal and vertical lines between rows/colum= ns in xtable? Just like for example \HL in \starttable? >> = >> You can use MetaPost to draw the rules but it=92s awkward because you ca= n make a setup like this >> = >> \setuxptable[column][1][background=3D=85] >> = >> which is only supported by natural tables. It would be simpler when stab= les had a counter like \currentxtablecolumn >> which could be accessed to make a test like =93if \currentxtablecolumn = =3D 1 then =85 fi=94 but this isn=92t the case. > = > I see. No hope here. = > = > But I found some sort of solution which I communicate here. It is bit of = a kludge but does more or less what I had in mind. The following macros do = the work in my xml=3D>xtable module: > also
and so on. > = > \def\setframeparts#1#2#3{% > \doifinset{t}{#1}{#3[topframe=3D#2]}% > \doifinset{b}{#1}{#3[bottomframe=3D#2]}% > \doifinset{l}{#1}{#3[leftframe=3D#2]}% > \doifinset{r}{#1}{#3[rightframe=3D#2]}% > } > ..#2 being \setupxtable or \setupframed, just as needed > \doifnot{\xmlatt{#1}{frameon}}{\empty}% > {#2[frame=3Doff]\setframeparts{\xmlatt{#1}{frameon}}{on}{#2}}% > \doifnot{\xmlatt{#1}{frameoff}}{\empty}% > {#2[frame=3Don]\setframeparts{\xmlatt{#1}{frameoff}}{off}{#2}}% > .. Can make a working minimal example. As you use xml as input language it=92s= no problem to save some settings and apply them later to each cell which w= ill allow you to set different values for the frames. You should also know that each xtable cell is a framed (it uses the \framed= code) like natural tables and \setupxtable accepts the same arguments as \= setupframed. >>> The workings of parameter spaceinbetween on \startxtable remain a myste= ry to me. Can someone enlighten me? >> = >> It inserts a space between each row, the amount of space is the same as = \blank[=85] would insert. > = > Do I conclude correctly that the dimension of the space is fixed to what = \blank[] does? = > I experimented with various values, but did not get much out of it. I=92m sorry but I was wrong, the =93spaceinbetween=94 value isn=92t passed = to \blank but context expects here something like =93spaceinbetween=3D{\vsk= ip }=94. I can send a patch to Hans because a internal blank wou= ld be allow you to write =93spaceinbetween=3D1cm=94 or =93spaceinbetween=3D= 2*line=94. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________