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 | [EMAIL PROTECTED]
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
-------------------------------------------------------------------------