From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5599 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Charting module Date: Mon, 10 Sep 2001 23:01:34 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20010910222919.025619e8@server-1> References: <11821851225.20010909190227@bigfoot.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_7351841==_" X-Trace: main.gmane.org 1035396179 2951 80.91.224.250 (23 Oct 2002 18:02:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:02:59 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Giuseppe Bilotta In-Reply-To: <11821851225.20010909190227@bigfoot.com> Xref: main.gmane.org gmane.comp.tex.context:5599 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5599 --=====================_7351841==_ Content-Type: text/plain; charset="us-ascii"; format=flowed Hi, I'm willing to look into extensions later this year but we should then collect the wishes first. I know that for instance Tobias has some wishes with regards to straight lines [not that complicated] and i'm sure that Willy has some too. while with half-grid steps I could put the intermediate link box 0 >(which btw shows as an empty dot; how to make it disappear so that i see no quick hack [have to print the module] for the dot. >A second question is about connection points. Despite the >recommendations in the manual about trying to avoid multiple >(outgoing) links per side (using e.g. [-b] or [+b]), I find this >possibility helpful, and actually essential in the above mentioned >example, where "Box 1" has two connection at the bottom (left and >right). (Yes I know I should rearrange the chart, but I don't want >to; I prefer it this way.) this looks doable and is mostly a matter of interfacing >However, these connections are too spaced away, because they are >at about 1/4, 3/4 of the side, which is essential if a third >connection (midpoint) is used, but sub-optimal when only two >connections are used (a better positioning in this case would be >to use a 1/3, 2/3 spacing). The suggestion resolves finally in >either giving the user the possibility to control position of the >connection points, or providing automatically the best position >depending on how many connection points are actually used. (And >what about allowing the users to have "as many connection points >per side as desired"? Imagine a (horrible?) thing with five >connection points: ++b, +b, b, -b, --b !) horrible indeed but 1 / 2 / 3 / 5 connections as option are ok >Finally: why do corner radius and arrow size share the same value? >Is there a way to change the value for some connections only and >activate/deactivate arrows for specific connections? is there a >way to force a straight arrow even when by default it would come >out bended? i suppose that you looked into m-chart -) most is configurable in the mp module, so again it's mostly a matter of interfacing [and lazyness of me] concerning changes in settings: you can change them in the flow and use grouping if needed, so you can have one connection with arrows and another with no arrows. Also: for lovers of i have a xml interface to flowcharts; combined with mathml and stepcharts and alike, this gives impressive chunks of xml Hans --=====================_7351841==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="demo-001.tex" % output=pdftex interface=en \usemodule[chart,mathml,steps] \setupcolors[state=start] \setupbodyfont[lbr,8pt] \setuplayout[width=middle,height=middle,backspace=1cm,topspace=1cm,header=0pt,footer=0pt] \startbuffer[xml] tex 1 1 action &tex; rl context context 2 1 action one even two odd three rl rubish rubish 1 2 action 1+2=3 rl another another 2 2 action 2 a bt tex \stopbuffer \startbuffer[tex] \startFLOWchart [test] \setupFLOWlines[color=darkgreen] \startFLOWcell \name{tex} \location{1,1} \shape{action} \text{\TeX} \connect[rl]{context} \stopFLOWcell \start \setupFLOWshapes[framecolor=darkred] \startFLOWcell \setupFLOWlines[color=darkyellow] \name{context} \location{2,1} \shape{action} \text {\startSTEPchart \cell{one} \text{even} \cell{two} \text{odd} \cell{three} \stopSTEPchart} \connect[rl]{rubish} \stopFLOWcell \stop \startFLOWcell \name{rubish} \location{1,2} \shape{action} \text{$1+2=3$} \connect[rl]{another} \stopFLOWcell \startFLOWcell \setupFLOWlines[color=darkblue] \name{another} \location{2,2} \shape{action} \text{$\sin(2+a)$} \connect[bt]{tex} \stopFLOWcell \stopFLOWchart \FLOWchart[test] \stopbuffer \starttext \processXMLbuffer[xml] \typebuffer[xml] \page \getbuffer[tex] \typebuffer[tex] \stoptext --=====================_7351841==_ Content-Type: text/plain; charset="us-ascii"; format=flowed ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- --=====================_7351841==_--