![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
As far as I know the FLOWchart module you can include existing pieces of
charts into a new one (see also the manual). However I would not know how to
separate the shapes from the arrows and combine the parts at will.
Krgds Willi
----- Original Message -----
From:
Hi all,
I have definitely not been flooded by answers. I am getting the impression that this forum might not have been the best one to ask (i.e. I have a practical problem which has little bearing with implementation aspects / bugs / new features of Context).
I have gone through comp.text.tex, but it seems to be heavily oriented towards latex. Would you have any other direction I could go to and get some assistance?
Thanks for showing a door (;-)),
Emmanuel
Thanks Hans. Apologies if the discussion doesn't flow very much, I am writing from down under.
In fact, what I would ideally like to do is the following:
1- Define a template with the boxes without any arrows. 2- Write numbered lists describing arrows that would be generated on top
of
the template.
The overview might look like the following (with some bogus macro names):
% Somewhere in a template file % Template for the boxes:
\StartMPTemplate[Boxes] % % ----- ----- ----- % ! ! ! ! ! ! % ! A ! ! B ! ! C ! % ----- ----- ----- % \startFLOWcell \name {a} \location {1,1} \shape {action} \text {\ss A} \stopFLOWcell
\startFLOWcell \name {b} \location {2,1} \shape {action} \text {\ss B} \stopFLOWcell
\startFLOWcell \name {c} \location {3,1} \shape {action} \text {\ss C} \stopFLOWcell
\StopMPTemplate
------------------------------------------------------------------
% This creates the first chapter \startcomponent Right \Chapter{Every to the right}
% Inserts a float with the proper figure and the proper arrows using the difinitions coming afterward \StartMPGraphWithTemplate[Right] \IncludeFLOWchartTemplate[Boxes] \StopMPGraphWithTemplate
% Place the float \placefigure [here,force] [fig:chart1] {Chart One} {\framed{\FLOWchart[Right]}}
% normal itemised text that will be numbered and will dynamically add tyhe arrows to the figure [Right] \startitemizeWithFLOWchart \arrow[labels=number,from=a,fromside=r,to=b,toside=l] This is the first arrow. \arrow[labels=number,from=b,fromside=r,to=c,toside=l] This is the second arrow. \stopitemizeWithFLOWchart
% This is the result % % ----- ----- ----- % ! ! 1 ! ! 2 ! ! % ! A !---->! B !---->! C ! % ! ! ! ! ! ! % ----- ----- ----- %
% The text should appear below the float as \startitemize would have done
% 1 This is the first arrow. % 2 This is the second arrow.
------------------------------------------------------------------
% This creates the next chapter \startcomponent Left \Chapter{Every to the left}
% Inserts a float with the proper figure and the proper arrows using the difinitions coming afterward \StartMPGraphWithTemplate[Left] \IncludeFLOWchartTemplate[Boxes] \StopMPGraphWithTemplate
% normal itemised text that will be numbered and will dynamically add tyhe arrows to the figure [Right] \startitemizeWithFLOWchart \arrow[labels=number,from=c,fromside=r,to=a,toside=l] This is the top arrow. \stopitemizeWithFLOWchart
% This is the result % !------------------------------ % ! ----- ----- ----- ! % ! ! ! ! ! ! ! ! % -->! A ! ! B ! ! C !--! % ! ! ! ! ! ! % ----- ----- ----- % %
The idea is that everything is dynamic: - if the template changes, all the graphs get redrawn with the boxes at their new place. The arrows get moved as needed. - if the itemised text is changed (say the 'second arrow' line is written before the 'first arrow'), then on the graph, the arrow from a to b would be numbered 2 and the arrow from b to c would become 1.
What I tried is the definition you see at the top for the boxes. Then, to generate the first graph, I would have:
--------------------------------------------------- \startFLOWchart[chart]
% Inserts template \includeFLOWchart[template][x=1,y=1]
% Additional information on top of cell a \startFLOWcell \name {a} \connection [rl] {b} \comment [t] {\ss 1} \stopFLOWcell
% Additional information on top of cell b \startFLOWcell \name {b} \connection [rl] {c} \comment [t] {\ss 2} \stopFLOWcell
\stopFLOWchart ---------------------------------------------------
All I get is the template without any arrows.
I thought about trying to generate massive metafun macros. But I want the itemised text to be text and not a graph.
Bottom line: is it possible? realistic?
I have been using MS Word so far to do that sort of thing. It has been quite tedious to reflect any change in the box structure: 10 charts means 10 charts to re-edit.
As a bonus question that should be easier. Is it possible to draw other sorts of arrows: i would like to draw straght line arrows that could follow a diagonal (say go north-east instead of east first then north), or circular arrows like:
% % ----- % ! ! % ! !<-- % ----- \ % \ % | % ----- / % ! ! / % ! A !<-- % -----
As usual any help is welcome.
Emmanuel
Hans Hagen
To: ntg-context@ntg.nl Sent by: cc: Emmanuel RIALLAND/au/socgen@socgen ntg-context-admin Subject: Re: [NTG-context] Inclusion of flow chart @ntg.nl 30/04/2003 05:17 Please respond to ntg-context
At 18:49 24/04/2003 +1100, emmanuel.rialland@sgib.com wrote:
As you might have guessed, this breaks everything.
Has anybody an idea as to how I could do that?
can you make a minimal example?
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 -------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
************************************************************************** Have you checked our new corporate website at http://www.sgib.com ?
The information contained herein is confidential and is intended solely for the addressee(s). It shall not be construed as a recommendation to buy or sell any security. Any unauthorized access, use, reproduction, disclosure or dissemination is prohibited. Neither SGIB nor any of its subsidiaries or affiliates shall assume any legal liability or responsibility for any incorrect, misleading or altered information contained herein. **************************************************************************
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context