From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65253 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: TABLE in a flow chart Date: Fri, 14 Jan 2011 10:58:41 -0500 (EST) Message-ID: References: <4D302F8F.3060209@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 1295020757 9304 80.91.229.12 (14 Jan 2011 15:59:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 Jan 2011 15:59:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 14 16:59:06 2011 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 1Pdm3K-0007UH-N7 for gctc-ntg-context-518@m.gmane.org; Fri, 14 Jan 2011 16:59:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77342CA972; Fri, 14 Jan 2011 16:59:01 +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 yMrIAAeHDi9K; Fri, 14 Jan 2011 16:58:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6DAAFCA98D; Fri, 14 Jan 2011 16:58:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38AD1CA98D for ; Fri, 14 Jan 2011 16:58: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 1X8nRxaXDFon for ; Fri, 14 Jan 2011 16:58:45 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 97F64CA972 for ; Fri, 14 Jan 2011 16:58:45 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0EFwhsU031260 for ; Fri, 14 Jan 2011 16:58:44 +0100 Original-Received: FROM adi-netbook (Mismatch [65.94.14.230]) By hellskitchen.mr.itd.umich.edu ID 4D3072B1.E6A69.5042 ; Authuser adityam; 14 Jan 2011 10:58:42 EST In-Reply-To: <4D302F8F.3060209@wxs.nl> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDTrWHmd - c18d1a555f80 - 20110114 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:65253 Archived-At: On Fri, 14 Jan 2011, Hans Hagen wrote: > On 14-1-2011 6:00, Aditya Mahajan wrote: >> Hi, >> >> I want to include a TABLE in a flow chart, but the table is shifted by >> an offset. Any ideas on how to get rid of the offset >> >> \usemodule[chart] >> >> \setupFLOWcharts[nx=1,ny=1,width=3cm,height=2cm] >> >> \setupTABLE[each][each][height=1cm] >> >> \startFLOWchart[test] >> \startFLOWcell >> \name{test} >> \location{1,1} >> \shape{action} >> \text >> {\bTABLE >> \bTR >> \bTD[width=3cm] One \eTD >> \eTR >> \bTR >> \bTD Two \eTD >> \eTR >> \eTABLE} >> \stopFLOWcell >> \stopFLOWchart >> >> \starttext >> >> \startTEXpage >> \FLOWchart[test] >> \stopTEXpage >> >> \stoptext > > for the moment use > > \bTD[width=\hsize] I actually want multiple cells, so width=\hsize is not convinient. > what you observe is an offset Thanks. \setupFLOWshapes[offset=none] gets rid of the offset. > I'll redo this module in a more mkiv-ish way That will be great. When you look at it, can you also see if you can add the following features: * set colors of individual shapes: maybe \defineFLOWshape[important][prodedure] \startFLOWcell ... \shape{important} ... \stopFLOWcell I know about focus, but sometimes you want more than two colors. * Define different line types (start arrow, end arrow, and line style (dashed, dotted, etc)). For example, be able to have one solid line and one dashed line. * Define shapes of different sizes (even if they are in multiples of the basic width and height). And perhaps have a more ConTeXtish interface to draw flowcharts. \startFLOWchart \defineFLOWcell [one] [location={..},shape={...}, color={...}, style={...}, background={...}, backgroundcolor={...}, framecolor={...}, framethickness={...}] {text} \defineFLOWcell [two] [...]{...} \defineFLOWlinealternative[linealternative] [start=diamond,stop=arrow,style=dotted] \FLOWline[one][two] [from={t},to={-b},color=...,thickness=..., alternative=linealternative, %defined above ] \stopFLOWchart Thanks, Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________