From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79137 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: chart module \connection[cc] Date: Sun, 11 Nov 2012 21:09:59 +0100 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <20121111210959.0392b042@iram-hb-003386.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352664606 2078 80.91.229.3 (11 Nov 2012 20:10:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2012 20:10:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 11 21:10:17 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TXdrD-0001nS-QK for gctc-ntg-context-518@m.gmane.org; Sun, 11 Nov 2012 21:10:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D019102EE; Sun, 11 Nov 2012 21:10:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MzHuud0a9yF2; Sun, 11 Nov 2012 21:10:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BE134102D5; Sun, 11 Nov 2012 21:10:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D8A9102D5 for ; Sun, 11 Nov 2012 21:10:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0FC53DVRHHLJ for ; Sun, 11 Nov 2012 21:10:01 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 7EC181023A for ; Sun, 11 Nov 2012 21:10:01 +0100 (CET) Original-Received: from sainfoin-out.extra.cea.fr (sainfoin-out.extra.cea.fr [132.167.192.145]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qABKA06F004297 for ; Sun, 11 Nov 2012 21:10:00 +0100 Original-Received: from epeire1.extra.cea.fr (epeire1.extra.cea.fr [132.167.198.31]) by sainfoin.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.3) with ESMTP id qABK9xRJ032189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 11 Nov 2012 21:09:59 +0100 Original-Received: from orpin2.extra.cea.fr (orpin2.extra.cea.fr [132.167.198.5]) by epeire1.extra.cea.fr (8.14.4/8.14.4) with ESMTP id qABK9xQe032334 for ; Sun, 11 Nov 2012 21:09:59 +0100 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-hb-003386.extra.cea.fr (charybde.extra.cea.fr [132.166.43.102]) by orpin2.extra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.2) with ESMTP id qABK9xfE025855 for ; Sun, 11 Nov 2012 21:09:59 +0100 X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.167.192.145; country=FR; region=A3; city=Gif-sur-yvette; latitude=48.6833; longitude=2.1333; http://maps.google.com/maps?q=48.6833,2.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08Imka0q9 - 3f32c67e1668 - 20121111 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79137 Archived-At: Hello, Once again, let me say that the chart module is great! In the following example 3 columns x 2 rows, I connect the cell {3,2} with the cell {2,1}. In the absence of the cell {2,2}, the arrow nicely goes through the center of this blank space. \usemodule [chart] \setupFLOWcharts [nx=3,ny=2, dx=2\bodyfontsize,dy=2\bodyfontsize, width=7\bodyfontsize,height=7\bodyfontsize, maxwidth=\textwidth] \starttext \startFLOWchart [minimal] \startFLOWcell \name {11} \location {1,1} \text {1,1} \connection [rl] {21} \stopFLOWcell \startFLOWcell \name {21} \location {2,1} \text {2,1} \connection [rl] {31} \stopFLOWcell \startFLOWcell \name {31} \location {3,1} \text {3,1} \connection [bt] {32} \stopFLOWcell % \startFLOWcell % \name {22} % \location {2,2} % \text {2,2} % \stopFLOWcell \startFLOWcell \name {32} \location {3,2} \text {3,2} \connection [lb] {21} \stopFLOWcell \stopFLOWchart \FLOWchart [minimal] \stoptext Question (or perhaps feature request), it would be nice to be able to connect the cells {3,2} and {2,1} using a diagonal arrow, running directly from the center of one cell to the center of the other, of course ending at the intersections with the cell shapes outlines. Is this possible? A decent syntax could be \connection [cc] {21} This syntax could also nicely work for the other connections, without having to specify "l" or "r" or "t" or "b". Thus, \connection [rl] {21} for the cell {1,1} could be replaced by \connection [cc] {21} yielding the same result. I can figure out how to do this in metapost, but I have not looked into the chart module code. Alan ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________