Re: [NTG-context] [m-chart] Focus feature
On 18-10-2011 21:32, Marco wrote: Another issue: According to the manual, “action” should be the default shape. However, when no shape is specified, an error is raised. Is it a bug? fixed in next beta also connection parsing is more tolerant now: "+ left - right" in addition to "lr" etc - 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 ___
Re: [NTG-context] [m-chart] Focus feature
On 2011-10-18 Willi Egger wrote: > Hi > > It works here with version ConTeXt ver: 2011.07.19 11:22 MKIV incl. the > autofocus feature. > > It does not put the focus color in version ConTeXt ver: 2011.10.14 22:47 > MKIV, nor does the autofocus feature work. Thanks for testing. Confirmed with versions: works: 2011.06.11 16:45, beta-0.70.1-2011051911 fails: 2011.10.17 10:36, beta-0.70.1-2011051918 Marco ___ 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] [m-chart] Focus feature
On 18-10-2011 22:07, Willi Egger wrote: Hi It works here with version ConTeXt ver: 2011.07.19 11:22 MKIV incl. the autofocus feature. It does not put the focus color in version ConTeXt ver: 2011.10.14 22:47 MKIV, nor does the autofocus feature work. (Hans, however it does work again with the experimental version 2011.10.10 13:38 MKIV and module [chart], there is no focus in module [flow]) module flow is gone .. it's chart again now (flow was a temp version) Hans - 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 ___
Re: [NTG-context] [m-chart] Focus feature
Hi It works here with version ConTeXt ver: 2011.07.19 11:22 MKIV incl. the autofocus feature. It does not put the focus color in version ConTeXt ver: 2011.10.14 22:47 MKIV, nor does the autofocus feature work. (Hans, however it does work again with the experimental version 2011.10.10 13:38 MKIV and module [chart], there is no focus in module [flow]) Willi On 18 Oct 2011, at 21:32, Marco wrote: > \usemodule [chart] > \setupFLOWfocus [framecolor=yellow] > \setupFLOWcharts [focus=bar] > > \startFLOWchart [mychart] > \startFLOWcell > \name {foo} > \location {1,1} > \shape{action} % mandatory, otherwise error > \text {Foo} > \stopFLOWcell > \startFLOWcell > \name {bar} > \location {1,2} > \shape{action} % mandatory, otherwise error > \text {Bar} > \connection [tb] {foo} > \stopFLOWcell > \stopFLOWchart > > \starttext > \FLOWchart [mychart] > \stoptext ___ 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] [m-chart] Focus feature
Hi, it's me with flow chars again. I didn't get the focus feature to work. The following example does not focus anything. Has the syntax changed or is the feature gone? %% \usemodule [chart] \setupFLOWfocus [framecolor=yellow] \setupFLOWcharts [focus=bar] \startFLOWchart [mychart] \startFLOWcell \name {foo} \location {1,1} \shape{action} % mandatory, otherwise error \text {Foo} \stopFLOWcell \startFLOWcell \name {bar} \location {1,2} \shape{action} % mandatory, otherwise error \text {Bar} \connection [tb] {foo} \stopFLOWcell \stopFLOWchart \starttext \FLOWchart [mychart] \stoptext %% Another issue: According to the manual, “action” should be the default shape. However, when no shape is specified, an error is raised. Is it a bug? Regards Marco Patzer ___ 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] [m-chart] Connections
On 2011-10-18 Wolfgang Schuster wrote: > […] > > To be sure I looked for the correct input and also MkII expects > the + and - before the location of the node but MkII had “n” as > synonym for + which is now “m” in MkIV. I see. Thanks for checking the sources. That means the syntax is as follows: -tt+t +l || +r || l || r || -l || -r || -bb+b I added a section to the wiki. Marco ___ 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] [m-chart] Connections
Am 18.10.2011 um 18:52 schrieb Aditya Mahajan: > On Tue, 18 Oct 2011, Wolfgang Schuster wrote: > >> >> Am 18.10.2011 um 18:14 schrieb Marco: >> >>> On 2011-10-18 Aditya Mahajan wrote: >>> t b r and l correspond to top, bottom, right, and left. The other two points are accessed throught t+ and t- etc. IIRC, for top and bottom, + corresponds to the right point and - to the left point; for left and right, + corresponds to the top point and - to the bottom point. >>> >>> According to this, [tb+] should yield to the desired >>> result. However, it produces the same output as [tb]. >> >> The order of arguments is now different in MkIV (bug?), > > It is more likely that I did not recall the syntax correctly. Neither do I, I don’t use module often enough to remember syntax. To be sure I looked for the correct input and also MkII expects the + and - before the location of the node but MkII had “n” as synonym for + which is now “m” in MkIV. Wolfgang ___ 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] [m-chart] Connections
On Tue, 18 Oct 2011, Wolfgang Schuster wrote: Am 18.10.2011 um 18:14 schrieb Marco: On 2011-10-18 Aditya Mahajan wrote: t b r and l correspond to top, bottom, right, and left. The other two points are accessed throught t+ and t- etc. IIRC, for top and bottom, + corresponds to the right point and - to the left point; for left and right, + corresponds to the top point and - to the bottom point. According to this, [tb+] should yield to the desired result. However, it produces the same output as [tb]. The order of arguments is now different in MkIV (bug?), It is more likely that I did not recall the syntax correctly. 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 ___
Re: [NTG-context] [m-chart] Connections
Am 18.10.2011 um 18:14 schrieb Marco: > On 2011-10-18 Aditya Mahajan wrote: > >> t b r and l correspond to top, bottom, right, and left. >> The other two points are accessed throught t+ and t- >> etc. IIRC, for top and bottom, + corresponds to the >> right point and - to the left point; for left and right, >> + corresponds to the top point and - to the bottom >> point. > > According to this, [tb+] should yield to the desired > result. However, it produces the same output as [tb]. The order of arguments is now different in MkIV (bug?), you have to write “tmb” or “t-p” to connect from the center of the bottom shape the left of the top shape, the two keywords “m” and “p” are synonyms for “-” (minus) and “+” (plus). Wolfgang ___ 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] [m-chart] Connections
On 2011-10-18 Aditya Mahajan wrote: > t b r and l correspond to top, bottom, right, and left. > The other two points are accessed throught t+ and t- > etc. IIRC, for top and bottom, + corresponds to the > right point and - to the left point; for left and right, > + corresponds to the top point and - to the bottom > point. According to this, [tb+] should yield to the desired result. However, it produces the same output as [tb]. Marco ___ 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] [m-chart] Connections
On Tue, 18 Oct 2011, Marco wrote: Hi, I cannot figure out how to connect to the bottom right point (the small red one). Anyway, in the manual the shortcuts to address the individual points are not really explained. I blindly guess: tm - top middle t - top middle bl - bottom left br - bottom right bm - bottom centre b - bottom centre … These don't look right. I haven't checked what the manual says, but I usually use t, t+, t- b, b+, b- r, r+, r- l, l+, l- t b r and l correspond to top, bottom, right, and left. The other two points are accessed throught t+ and t- etc. IIRC, for top and bottom, + corresponds to the right point and - to the left point; for left and right, + corresponds to the top point and - to the bottom point. 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] [m-chart] Connections
Hi, I cannot figure out how to connect to the bottom right point (the small red one). Anyway, in the manual the shortcuts to address the individual points are not really explained. I blindly guess: tm - top middle t - top middle bl - bottom left br - bottom right bm - bottom centre b - bottom centre … However, in the following example it doesn't work. Any ideas? % \usemodule [chart] \setupFLOWcharts [option=test] \startFLOWchart [mychart] \startFLOWcell \name {foo} \location {1,1} \shape{action} \text {Foo} \stopFLOWcell \startFLOWcell \name {bar} \location {1,2} \shape{action} \text {Bar} %\connection [tmbl] {foo} % left \connection [tmbr] {foo} % also left ?? \stopFLOWcell \stopFLOWchart \starttext \FLOWchart [mychart] \stoptext % Regards Marco Patzer ___ 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] `\usemodule[graph]` causes error `! Unable to make mpx file.` with ConTeXt ver: 2011.10.14 22:47 MKIV
Confirmed here. OK ConTeXt ver: 2011.09.27 20:05 MKIV fmt: 2011.9.30 not OK ConTeXt ver: 2011.10.17 10:36 MKIV fmt: 2011.10.18 Alan On Tue, Oct 18, 2011 at 02:41:45PM +0200, Paul Menzel wrote: > Dear ConTeXt folks, > > > using the following minimal example > > \usemodule[graph] > > \starttext > \startMPcode > draw unitsquare scaled 1cm; > \stopMPcode > \stoptext > > causes the following error. > > $ context graph > > ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: > english/english > > […] > > metapost> initializing instance 'metafun' using format > 'metafun' > metapost> loading > 'metafun': > /context/tex/texmf-context/metapost/context/base/metafun.mpiv > ! terminal: > (/context/tex/texmf-context/metapost/context/base/mp-spec.mpii) > (/context/tex/texmf/metapost/base/graph.mp > (/context/tex/texmf/metapost/base/marith.mp > (/context/tex/texmf/metapost/base/string.mp)) > (/context/tex/texmf/metapost/base/format.mp > (/context/tex/texmf/metapost/base/string.mp) > (/context/tex/texmf/metapost/base/troffnum.mp > >> troffnum.mp > >> troffnum.mpx > ! Unable to make mpx file. > l.7 init_numbers(btex > $-$etex, btex$1$etex, btex$ times 10$etex, > […] > > Removing `\usemodule[graph]` make the example work. The used terminal(?) > and use of `mp-spec.mpii` looks suspicious. > > Using the ConTeXt version in Debian Sid/unstable the example works. > > $ context graph > > […] > > ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.24 int: > english/english > > […] > > structure > sectioning > section @ level 3 : 0.0.1 -> Test > metapost> initializing instance 'metafun' using format > 'metafun' > metapost> loading 'metafun.mp' (experimental metapost version > two) > backend > xmp > using file > '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' > > > Thanks, > > Paul > \usemodule[graph] > > \starttext > \startMPcode > draw unitsquare scaled 1cm; > \stopMPcode > \stoptext ___ 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] `\usemodule[graph]` causes error `! Unable to make mpx file.` with ConTeXt ver: 2011.10.14 22:47 MKIV
Dear ConTeXt folks, using the following minimal example \usemodule[graph] \starttext \startMPcode draw unitsquare scaled 1cm; \stopMPcode \stoptext causes the following error. $ context graph ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english […] metapost> initializing instance 'metafun' using format 'metafun' metapost> loading 'metafun': /context/tex/texmf-context/metapost/context/base/metafun.mpiv ! terminal: (/context/tex/texmf-context/metapost/context/base/mp-spec.mpii) (/context/tex/texmf/metapost/base/graph.mp (/context/tex/texmf/metapost/base/marith.mp (/context/tex/texmf/metapost/base/string.mp)) (/context/tex/texmf/metapost/base/format.mp (/context/tex/texmf/metapost/base/string.mp) (/context/tex/texmf/metapost/base/troffnum.mp >> troffnum.mp >> troffnum.mpx ! Unable to make mpx file. l.7 init_numbers(btex $-$etex, btex$1$etex, btex$ times 10$etex, […] Removing `\usemodule[graph]` make the example work. The used terminal(?) and use of `mp-spec.mpii` looks suspicious. Using the ConTeXt version in Debian Sid/unstable the example works. $ context graph […] ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.24 int: english/english […] structure > sectioning > section @ level 3 : 0.0.1 -> Test metapost> initializing instance 'metafun' using format 'metafun' metapost> loading 'metafun.mp' (experimental metapost version two) backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' Thanks, Paul \usemodule[graph] \starttext \startMPcode draw unitsquare scaled 1cm; \stopMPcode \stoptext signature.asc Description: This is a digitally signed message part ___ 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] A special case: hiding section head information in the text but still keeping the TOC entry
On 18-10-2011 06:21, Wolfgang Schuster wrote: Am 17.10.2011 um 23:39 schrieb Willi Egger: Hi all, I had to deal with a special case. In my document there are only sections and subsections. The section titles are placed in a different place than they naturally would occur according to the coding in the text. What I needed to do is to hide the section title, having no placeholder/white space inserted but still keeping the entry in the TOC. \setuphead [section] [placehead=hidden] \setuptexttexts[{\placerawheaddata[section]} The first setup hides the title completely and does not insert any whitespace. It causes on the other hand, that the TOC entry is also hidden/gone. With the second command the data are flushed and end up in the TOC. Does it work without \placerawheaddata when you use “placehead=no” or “placehead=empty” for section? only the hidden does not flush the status node when empty is set a node can interfere with spacing (grep for \placecurrentheadhidden to see the magic) Hans - 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 ___