From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58936 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to place a (right) brace in a TABLE? Date: Thu, 20 May 2010 13:04:15 +0200 Message-ID: <4BF5172F.1020501@googlemail.com> References: <20100520094532.GF11459@smoon2> 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 1274353477 15114 80.91.229.12 (20 May 2010 11:04:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 11:04:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 20 13:04:32 2010 connect(): No such file or directory 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 1OF3YF-0004Jj-3n for gctc-ntg-context-518@m.gmane.org; Thu, 20 May 2010 13:04:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D3BAC9AD9; Thu, 20 May 2010 13:04:30 +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 oA6jan2zKTEM; Thu, 20 May 2010 13:04:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 93EE7C9AFD; Thu, 20 May 2010 13:04:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C25D6C9AFD for ; Thu, 20 May 2010 13:04:23 +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 Vj3WxXhb70ep for ; Thu, 20 May 2010 13:04:18 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by balder.ntg.nl (Postfix) with ESMTP id AB0A9C9AD9 for ; Thu, 20 May 2010 13:04:18 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id 19so1003440fgg.2 for ; Thu, 20 May 2010 04:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ZD9fBbXErJFTC1PMCdr6TO+Q0WoZXQ6qPYAq3I00g00=; b=AsrqY8c7Pl2l+UVVWZ5FlNbTy9uR1MCMagyeiZGnDaGJU9qmqOgWiRMoEovYG2zwkl tNdkEGON97SLEOO4s75HKm2/p+qGDsqTrdF2YSWnx4iADcVNxVi3xR9JBQHxnz2JKld1 JtzeCx7BGncMOdJPULn9eVrdNhZsvR9DDbKGw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=iM6qHRxITMckhIBfnmI/YEc4kP6d7Z1gCTUFNlZG5vM0GJikmK0HSaUP9WxgW4NeeX 85ImWg86G6+orOIi6QbvmH+CWISZBnPiN4IiOcczsfNfQy5QwY3U/x1CXR3iRPcOwH3o XWKsYUop22vvhavi2WY7Ne1AG7SBaCX0uawF0= Original-Received: by 10.103.125.13 with SMTP id c13mr1854596mun.81.1274353458233; Thu, 20 May 2010 04:04:18 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B29397B.dip.t-dialin.net [91.41.57.123]) by mx.google.com with ESMTPS id a11sm28495983bkc.9.2010.05.20.04.04.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 May 2010 04:04:17 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: <20100520094532.GF11459@smoon2> 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:58936 Archived-At: Am 20.05.10 11:45, schrieb Vladimir Lomov: > Hi. > > (Sorry for unclear question in topic.) > > I want to put a brace (right or left isn't matter now) in a TABLE (may > be another table environment) like in below scheme > > a11 a12| a13 > a21 a22| a23 > a31 a32 a33 > a41 a42 a43 > a51 a52| a53 > a61 a62| a63 > > Here '|' marks place and elements which should be grouped by a brace. > > Thanks in advance, Vladimir Lomov. > > P.S. I'm new in context and don't have any idea how to achieve this. I > thought about graphics (metapost) to draw a brace or join two cells and > draw big brace. And, yes I use mkiv and latest beta (context minimal). You can play with this: \def\linkeklammer {\setbox\scratchbox\hbox{$\left\{\vrule height .5\vsize depth .5\vsize width 0pt\relax\right.$}% \rightaligned{\hbox to .5\wd\scratchbox{\raise\dp\scratchbox\box\scratchbox\hss}}} \def\rechteklammer {\setbox\scratchbox\hbox{$\left.\vrule height .5\vsize depth .5\vsize width 0pt\relax\right\}$}% \leftaligned{\hbox to .5\wd\scratchbox{\hss\raise\dp\scratchbox\box\scratchbox}}} \defineoverlay[linkeklammer] [\linkeklammer] \defineoverlay[rechteklammer][\rechteklammer] \starttext \bTABLE \bTR[align={middle,middle},frame=off,offset=1ex] \bTD[background=linkeklammer] text \eTD \bTD text\\text\\text \eTD \bTD[background=rechteklammer] text \eTD \eTR \eTABLE \stoptext and this: \startuseMPgraphic{accolade} z1 = (-233,0) ; z2 = (-220,22) ; z3 = (-155,211) ; z4 = (-200,690) ; z5 = (-142,1033) ; z6 = (-97,1106) ; z7 = (-71,1125) ; z8 = (-61,1104) ; z9 = (-80,1077) ; z10 = (-108,1002) ; z11 = (-129,666) ; z12 = (-117,207) ; z13 = (-197,19) ; z14 = (-208,0) ; z15 = (-197,-19) ; z16 = (-117,-207) ; z17 = (-129,-666) ; z18 = (-108,-1026) ; z19 = (-80,-1077) ; z20 = (-61,-1104) ; z21 = (-71,-1125) ; z22 = (-97,-1106) ; z23 = (-143,-1031) ; z24 = (-199,-673) ; z25 = (-155,-211) ; z26 = (-220,-22) ; fill z1 for i=2 upto 14: .. z[i] endfor & z14 for j=15 upto 26: .. z[j] endfor .. z1 & cycle ; \stopuseMPgraphic \defineoverlay[leftbrace] [\leftaligned {\scale[height=\overlayheight]{\useMPgraphic{accolade}}}] \defineoverlay[rightbrace][\rightaligned{\mirror{\scale[height=\overlayheight]{\useMPgraphic{accolade}}}}] \starttext \framedtext[frame=off,loffset=1em,roffset=1em,background={leftbrace,rightbrace}]{\input knuth\par} \setupTABLE[frame=off,offset=1ex] \setupTABLE[row][each][align={middle,lohi}] \bTABLE \bTR \bTD[nr=3,background=leftbrace] drei \eTD \bTD[nr=2,background=leftbrace] zwei \eTD \bTD f \eTD \bTD o \eTD \bTD u \eTD \bTD r \eTD \bTD [nr=3,background=rightbrace] three \eTD \eTR \bTR \bTD [background=leftbrace] eins \eTD \bTD null \eTD \bTD [background=rightbrace] one \eTD \bTD [nr=2,background=rightbrace] two \eTD \eTR \bTR \bTD v \eTD \bTD i \eTD \bTD e \eTD \bTD r \eTD \eTR \eTABLE \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________