* flowchart strangeness
@ 2002-05-28 22:38 Binx Bolling
2002-05-29 7:55 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Binx Bolling @ 2002-05-28 22:38 UTC (permalink / raw)
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
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: flowchart strangeness
2002-05-28 22:38 flowchart strangeness Binx Bolling
@ 2002-05-29 7:55 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2002-05-29 7:55 UTC (permalink / raw)
Cc: ntg-context
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-29 7:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-28 22:38 flowchart strangeness Binx Bolling
2002-05-29 7:55 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).