[NTG-context] chart module \connection[cc]
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 ___
Re: [NTG-context] Chart module
On 20-11-2011 03:52, Aditya Mahajan wrote: Hi, Nested flow charts do not work in the current chart module. \usemodule[chart] \startFLOWchart[A] \startFLOWcell \name{A} \location{1,1} \text{A} \stopFLOWcell \stopFLOWchart \startFLOWchart[B] \includeFLOWchart[A][x=1,y=1] \stopFLOWchart \startFLOWchart[C] \includeFLOWchart[B][x=1,y=1] \stopFLOWchart \starttext \FLOWchart[A] \FLOWchart[B] \FLOWchart[C] \stoptext quick fix, line 324: for i=1,#subdata do local si = subdata[i] if si.include then inject(si,data,hash) else local t = { x= si.x + xoffset, y= si.y + yoffset, settings = settings, } setmetatableindex(t,si) data[#data+1] = t hash[si.name or #data] = t end end - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
[NTG-context] Chart module
Hi, Nested flow charts do not work in the current chart module. \usemodule[chart] \startFLOWchart[A] \startFLOWcell \name{A} \location{1,1} \text{A} \stopFLOWcell \stopFLOWchart \startFLOWchart[B] \includeFLOWchart[A][x=1,y=1] \stopFLOWchart \startFLOWchart[C] \includeFLOWchart[B][x=1,y=1] \stopFLOWchart \starttext \FLOWchart[A] \FLOWchart[B] \FLOWchart[C] \stoptext gives ! LuaTeX error ...-minimals/texmf-context/tex/context/base/m-chart.lua:563: attempt to get length of local 'connections' (a nil value) stack traceback: ...-minimals/texmf-context/tex/context/base/m-chart.lua:563: in function 'process_connections' ...-minimals/texmf-context/tex/context/base/m-chart.lua:827: in function 'makechart' ...-minimals/texmf-context/tex/context/base/m-chart.lua:870: in function 'flow_make_chart' main ctx instance:1: in main chunk. system tex error on line 24 in file te Aditya ___ 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 ___
[NTG-context] Chart module: comment not visible!?
Hi, I wanted to try the chart module to build some flow diagrams, and tried the example (digital signal processing!) at contextgarden. Unfortunately, the text inside the rectangular shapes shows up properly, but no sign of any comments visible in the generated pdf-file! I use ConTeXt ver: 2008.05.21 15:21 MKII together with pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7). Any help will be very much appreciated. Thanks in advance! Regards, Gerard Verhaag ___ 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 ___
Re: [NTG-context] Chart module: comment not visible!?
On Monday 06 December 2010 11:09:42 Verhaag, G.C.H.M. wrote: Hi, I wanted to try the chart module to build some flow diagrams, and tried the example (digital signal processing!) at contextgarden. Unfortunately, the text inside the rectangular shapes shows up properly, but no sign of any comments visible in the generated pdf-file! I use ConTeXt ver: 2008.05.21 15:21 MKII together with pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7). Any help will be very much appreciated. Thanks in advance! Regards, Gerard Verhaag Processes fine here using mkiv and the latest minimals. I do not know about mkii... Alan dsp.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] Chart module: comment not visible!?
Alan BRASLAU wrote: On Monday 06 December 2010 11:09:42 Verhaag, G.C.H.M. wrote: Hi, I wanted to try the chart module to build some flow diagrams, and tried the example (digital signal processing!) at contextgarden. Unfortunately, the text inside the rectangular shapes shows up properly, but no sign of any comments visible in the generated pdf-file! I use ConTeXt ver: 2008.05.21 15:21 MKII together with pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7). Any help will be very much appreciated. Thanks in advance! Regards, Gerard Verhaag Processes fine here using mkiv and the latest minimals. I do not know about mkii... Alan Hi, So it is best to upgrade! Regards, Gerard Verhaag ___ 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 ___
[NTG-context] Chart module problem.
I copied the first example in the Charts manual as follows: --- \setupoutput[pdftex] \usemodule[chart] \starttext \setupFLOWcharts [option=test, nx=4, ny=3, dx=2\bodyfontsize, dy=2\bodyfontsize, width=12\bodyfontsize, height=7\bodyfontsize, maxwidth=\textwidth] \startFLOWchart[grid] \stopflowchart \FLOWchart[grid] \stoptext - I get the following error messages; --- systems: begin file ped at line 3 ped-flw-1.tmp) Runaway argument? ! File ended while scanning use of \copyblockline. inserted text \par * cont-en ped.tex ? If I have made a silly mistake would someone please point it out? -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Chart module problem.
Hi John, Here your code compiles as soon as you change \stopflowchart into \stopFLOWchart! Willi John R. Culleton wrote: I copied the first example in the Charts manual as follows: --- \setupoutput[pdftex] \usemodule[chart] \starttext \setupFLOWcharts [option=test, nx=4, ny=3, dx=2\bodyfontsize, dy=2\bodyfontsize, width=12\bodyfontsize, height=7\bodyfontsize, maxwidth=\textwidth] \startFLOWchart[grid] \stopflowchart \FLOWchart[grid] \stoptext - I get the following error messages; --- systems: begin file ped at line 3 ped-flw-1.tmp) Runaway argument? ! File ended while scanning use of \copyblockline. inserted text \par * cont-en ped.tex ? If I have made a silly mistake would someone please point it out? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Chart module problem.
On Saturday 02 July 2005 08:20 pm, Willi Egger wrote: Hi John, Here your code compiles as soon as you change \stopflowchart into \stopFLOWchart! Willi See, I knew it was something simple staring me in the face. Or perhaps I am the thing that is simple. Anyhow, back to the (virtual) drawing board. I hope a have a more challenging question later. Thanks very much for a prompt response. -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context