[NTG-context] Charts

Willi Egger w.egger at boede.nl
Wed Apr 6 19:06:17 CEST 2005


Hi David,

As Patrick posted on the list, you can use the placefloat mechanism to 
get the whole chart splitted over several pages. In this case you will 
not be able to use interactivity within the chart.

I feel, that you want to split the chart over two pages. So you need to use

\FLOWcharts[...] (plural)
           ^
Use \showframe to see the actual margins, header and footer. You will 
have to play with the different parameters to make things fit. E.g. 
there is no room for 8 shapes on a A4 if you do not change the 
page-layout. Though it works with 7 shapes. If you want that the text 
follows directly the FLOWchart, then you need to withdraw the 
after=\page. You might want to increase the space between chart and text 
by e.g. after={\blank[3*big]}.

I hope this will help solving your problem

Willi

David Waller wrote:
> Hi Willi,
> Thanks for your comments, unfortunately this still hasn't helped me. I
> enclose below a simple sample that shows the problem. Any advice
> please?
> 
> % interface=en output=pdftex
> 
> \usemodule[chart]
> \setupFLOWcharts
>       [x=1,
>       y=1,
>       nx=5,
>       ny=9,
>       dx=\bodyfontsize,
>       dy=\bodyfontsize,
>       width=6\bodyfontsize,
>       height=4\bodyfontsize]
> 
> \setupFLOWsplit
>         [x=1,
>         y=1,
>         nx=5,
>         ny=8,
>         dx=1,
>         dy=1,
>         before=,
>         after=\page,
>         marking=on]
> 
> \startFLOWchart [place-st-low]
>   \startFLOWcell
>     \name {start}
>     \location {1,1}
>     \shape {procedure}
>     \text {Straight}
>     \connection [bt] {1}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {1}
>     \location {1,2}
>     \shape {wait}
>     \text {Place}
>     \connection [bt] {20}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {20}
>     \location {1,3}
>     \shape {wait}
>     \text { point}
>     \connection [bt] {2}
>   \stopFLOWcell  
>   \startFLOWcell
>     \name {2}
>     \location {1,4}
>     \shape {12}
>     \text {User}
>     \connection [bt] {3}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {3}
>     \location {1,5}
>     \shape {sub procedure}
>     \text {Start}
>     \connection [bt] {4}
>     \connection [rr] {2}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {4}
>     \location {1,6}
>     \shape {decision}
>     \text {new}
>     \connection [bt] {5}
>     \connection [rl] {4a}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {4a}
>     \location {2,6}
>     \shape {action}
>     \text {Automatically}
>     \connection [bt] {7}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {5}
>     \location {1,7}
>     \shape {12}
>     \text {User}
>     \connection [bt] {6}
>   \stopFLOWcell 
>   \startFLOWcell
>     \name {6}
>     \location {1,8}
>     \shape {sub procedure}
>     \text {Start distance}
>     \connection [bt] {7}
>     \connection [rr] {5}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {7}
>     \location {1,9}
>     \shape {wait}
>     \text {Reset}
>     \connection [bt] {8}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {8}
>     \location {1,10}
>     \shape {12}
>     \text {User}
>     \connection [bt] {9}
>   \stopFLOWcell 
>   \startFLOWcell
>     \name {9}
>     \location {1,11}
>     \shape {sub procedure}
>     \text {distance validation}
>     \connection [bt] {10}
>     \connection [rr] {8}
>   \stopFLOWcell
>   \startFLOWcell
>     \name {10}
>     \location {1,12}
>     \shape {action}
>     \text {LOW is placed}
>     \connection [lr] {1a}
>   \stopFLOWcell
> \stopFLOWchart
> 
> \starttext
> 
> Some text to start it all off
> 
> \FLOWchart[place-st-low]
> 
> Now we want some text so that it looks like their is actually some
> more text at the end.
> 
> \stoptext
> 
> Thanks
> David Waller
> 
> 
> On Apr 4, 2005 9:47 PM, Willi Egger <w.egger at boede.nl> wrote:
> 
>>Hi David,
>>
>>If I remember correctly one should not use the \maxwidth option.
>>Personally I have at this moment work under hand using the following setup:
>>
>>\setupFLOWcharts
>>     [x=1,
>>     y=1,
>>     nx=5,
>>     ny=11,
>>     dx=\bodyfontsize,
>>     dy=\bodyfontsize,
>>     width=6\bodyfontsize,
>>     height=4\bodyfontsize]
>>
>>    \setupFLOWsplit
>>       [x=1,
>>       y=1,
>>       nx=5,
>>       ny=10,
>>       dx=1,
>>       dy=1,
>>       before=,
>>       after=\page,
>>       marking=off]
>>
>>This works perfectly even with charts consuming multiple pages.
>>
>>Kind regards Willi
>>
>>David Waller wrote:
>>
>>>Hello,
>>>I am using the charts module as part of context to produce flowcharts
>>>and I am having problems when the flowchart goes above a page in that
>>>I can't get the system to automatically split the chart.
>>>I have the following setup commands in my context file
>>>
>>>\usemodule[chart]
>>>\setupFLOWcharts[maxwidth=\textwidth, nx=4]
>>>\setupFLOWsplit[ny=9, before=, after=\page]
>>>
>>>based upon the manual. I then use the command
>>>\FLOWcharts [bigchart]
>>>
>>>later in the document and the flowchart does not split, instead it
>>>runs off the bottom of the page. I have also tried using \splitfloat
>>>with no success either.
>>>
>>>I am running
>>> TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
>>>
>>>Kpathsea released!
>>>               texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
>>>               texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
>>>                   tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2c 7.5.3)
>>>               context : ver: 2005.03.16
>>>               cont-en : ver: 2005.03.16  fmt: 2005.3.20  mes: english
>>>               cont-cz : ver: 2005.03.16  fmt: 2005.3.20  mes: english
>>>               cont-de : ver: 2005.03.16  fmt: 2005.3.20  mes: english
>>>               cont-it : ver: 2005.03.16  fmt: 2005.3.20  mes: english
>>>               cont-nl : ver: 2005.03.16  fmt: 2005.3.20  mes: dutch
>>>               cont-ro : ver: 2005.03.16  fmt: 2005.3.20  mes: dutch
>>>               cont-uk : ver: 2005.03.16  fmt: 2005.3.20  mes: dutch
>>>
>>>Any help please
>>>
>>>Thanks
>>>Dave Waller
>>>_______________________________________________
>>>ntg-context mailing list
>>>ntg-context at ntg.nl
>>>http://www.ntg.nl/mailman/listinfo/ntg-context
>>
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context


More information about the ntg-context mailing list