From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/8088 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: flowchart strangeness Date: Wed, 29 May 2002 09:55:33 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020529095202.04a388b0@server-1> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035398523 24702 80.91.224.250 (23 Oct 2002 18:42:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:42:03 +0000 (UTC) Cc: ntg-context@let.uu.nl Original-To: "Binx Bolling" In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:8088 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:8088 At 10:38 PM 5/28/2002 +0000, Binx Bolling wrote: >Why does the appended context flowchart generate an error? If I uncomment >the block at the end, it processes without a problem. It seems that >problems sometimes arise if the last cell is between a \bgroup \egroup >pair. I would like to enclose some cells that way in order to change >attributes. > >Thanks, >bb > >%output=pdf > >\usemodule[chart] >\starttext >\startFLOWchart[cells] > > \startFLOWcell > \name {A} > \location{1,1} > \shape{action} > \text{Box A} > \connection[bt]{B} > \stopFLOWcell >{ > \startFLOWcell > \name {B} > \location{1,2} > \shape{action} > \text{Box B} > \stopFLOWcell >} > >% \startFLOWcell >% \name {C} >% \location{1,3} >% \shape{action} >% \text{Box C} >% \stopFLOWcell > >\stopFLOWchart >\FLOWchart[cells] >\stoptext During a first pass, the dimensions are determined, and this happens locally, which means that in this case a 1 by 1 grid is taken; adding the third cell kind of obscure this since now the grid is 1 by 3; the solution is a small patch in m-chart: \def\getFLOWlocationA#1,#2\end {\ifnum0#1>\FLOWwidth \xdef\FLOWwidth {#1}\fi \ifnum0#2>\FLOWheight\xdef\FLOWheight{#2}\fi} (there are a few more places, but that's not important now) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------