From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33867 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: textblocks in tables Date: Fri, 16 Mar 2007 11:06:43 +0100 Message-ID: <20070316110643.2fcac6c5.schuster.wolfgang@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1174039648 32101 80.91.229.12 (16 Mar 2007 10:07:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Mar 2007 10:07:28 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 16 11:07:16 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HS9L9-00040u-FM for gctc-ntg-context-518@m.gmane.org; Fri, 16 Mar 2007 11:07:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E68BD1FA67; Fri, 16 Mar 2007 11:01:48 +0100 (CET) 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 13679-01-5; Fri, 16 Mar 2007 11:01:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4EB111FA53; Fri, 16 Mar 2007 11:01:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C699E1FA53 for ; Fri, 16 Mar 2007 11:01:37 +0100 (CET) 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 13679-01-4 for ; Fri, 16 Mar 2007 11:01:31 +0100 (CET) Original-Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by ronja.ntg.nl (Postfix) with ESMTP id 6E48B1FA50 for ; Fri, 16 Mar 2007 11:01:31 +0100 (CET) Original-Received: by mu-out-0910.google.com with SMTP id i2so711409mue for ; Fri, 16 Mar 2007 03:06:56 -0700 (PDT) Original-Received: by 10.82.153.5 with SMTP id a5mr2824585bue.1174039616341; Fri, 16 Mar 2007 03:06:56 -0700 (PDT) Original-Received: from eve ( [217.185.122.230]) by mx.google.com with ESMTP id j2sm5905165mue.2007.03.16.03.06.53; Fri, 16 Mar 2007 03:06:54 -0700 (PDT) In-Reply-To: X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.7; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:33867 Archived-At: On Fri, 16 Mar 2007 09:41:50 +0100 "Bernhard Michael" wrote: > Hi list > = > After writing some documents in LaTeX I discovered ConTeX. It's a great m= acro package for TeX. It gives me the flexibility I missed with LaTeX. > = > However it isn't that easy to start with :-) Especially when some advance= d functionality is needed... > = > I write a document where I have to describe requirements. I want to give = these requirements a running number over all chapters and I also need to pr= ioritise them. > = > My idea is to describe the requirements in several chapter. At the end I = want to list all the requirements together with their priority. > = > I tried the following code but unfortunately it didn't work: > = > \defineenumeration[Requirement][location=3Dleft,text=3DReq,width=3Dbroad,= after=3D{\blank[small]}] > \defineblock[Requirement,Priority] > \setupblock[Requirement][after=3D] > \hideblocks[Priority] > = > \starttext > = > \chapter{Description of requirements} > = > \beginRequirement > \Requirement A requirement \par > \endRequirement > \beginPriority > A > \endPriority > Description of the requirement. > = > \beginRequirement > \Requirement An other requirement \par > \endRequirement > \beginPriority > C > \endPriority > Description of the requirement. > = > \chapter{Additional requirements} > = > \beginRequirement > \Requirement An additional requirement \par > \endRequirement > \beginPriority > B > \endPriority > Description of the requirement. > = > \beginRequirement > \subRequirement A sub requirement \par > \endRequirement > \beginPriority > C > \endPriority > Description of the requirement. > = > \chapter{Summary of requirements} > % Here I would like to list all requirements with their priorities in a t= able > % I tried something like this but it didn't work > \reset[Requirement] > \setupblock[Requirement][before=3D\HL\VL,after=3D] > \setupblock[Priority][before=3D\VL,after=3D\VL\MR > \starttable[|l|c|] > \useblocks[Requirement,Priority] > \stoptable > = > \stoptext > = > Is it possible to use text blocks within tables or does an other way exis= ts to do the same thing? It doesn=92t have to be a table necessarily. I nee= d some sort of compact listing. > = > Thanks in advance for your help! > = > Michael > = Hi Michael, using natural tables instead of the normal table environment works. \bTABLE \bTR \bTD\useblocks[Requirement]\eTD \bTD\useblocks[Priority]\eTD \eTR \eTABLE Wolfgang