Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Marco Patzer
On 2013–02–14 Marco Patzer wrote: Now I can use “n” in all MP instances (unless switched off for the particular instance). I'd like to define some variables only visible in instance “foo”. Something like \startMPinitializations [foo] numeric n; n=4cm; \stopMPinitializations What

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Alan BRASLAU
I am glad to see that I am not alone being confused... We have: \defineMPinstance [name] [\s!format=metafun, \s!extensions=\v!yes, \s!initializations=\v!yes, \c!method=\s!default, \c!textstyle=, \c!textcolor=] also, \setupMPinstance So that extensions=yes|no and

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Marco Patzer
On 2013–02–14 Alan BRASLAU wrote: So that extensions=yes|no and initializations=yes|no controls the use of MPextensions and MPinitializations. It seems that extensions is intended for all instances (when enabled). From what I can see, extensions are read once, initializations each, and

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Alan BRASLAU
On Thu, 14 Feb 2013 19:14:46 +0100 Marco Patzer home...@lavabit.com wrote: I still have not figured out how to specify MPinclusions for a particular instance. Try \startMPdefinitions{myinstance} This is *not* the same as MPinclusions! We may have an instance with its own MPdefinitions,

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Wolfgang Schuster
Am 14.02.2013 um 18:59 schrieb Alan BRASLAU alan.bras...@cea.fr: I still have not figured out how to specify MPinclusions for a particular instance. That’s not supported, the settings are applied to all instances and you only enable or disable them. Wolfgang

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Hans Hagen
On 2/14/2013 7:14 PM, Marco Patzer wrote: On 2013–02–14 Alan BRASLAU wrote: So that extensions=yes|no and initializations=yes|no controls the use of MPextensions and MPinitializations. It seems that extensions is intended for all instances (when enabled). From what I can see, extensions are

[NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-13 Thread Marco Patzer
Hi, I know that MPinclusions are included only once and MPinitializations are included once for each graphic. But how do MPextensions fit in? How can I define variables or definitions that are local to a particular MP instance? Marco signature.asc Description: Digital signature

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-13 Thread Hans Hagen
On 2/13/2013 6:59 PM, Marco Patzer wrote: Hi, I know that MPinclusions are included only once and MPinitializations are included once for each graphic. But how do MPextensions fit in? How can I define variables or definitions that are local to a particular MP instance? by defining a new

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-13 Thread Marco Patzer
On 2013–02–14 Hans Hagen wrote: I know that MPinclusions are included only once and MPinitializations are included once for each graphic. But how do MPextensions fit in? How can I define variables or definitions that are local to a particular MP instance? by defining a new instance I

Re: [NTG-context] MPinclusions/MetaPost sarith (graph) package

2010-03-08 Thread Alan BRASLAU
On Monday 08 March 2010 09:18:38 Wolfgang Schuster wrote: \startMPinclusions[+] input sarith; \stopMPinclusions This probably explains other problems that I had experienced concerning \startMPinclusions\stopMPinclusions... Indeed, as metapost is processed in one run under mkIV, I had

Re: [NTG-context] MPinclusions/MetaPost sarith (graph) package

2010-03-08 Thread luigi scarso
On Mon, Mar 8, 2010 at 3:28 PM, Alan BRASLAU alan.bras...@cea.fr wrote: (Currently I externally use awk via \immediate\write18 to manipulate data.) In mkiv you should be able to manipulate your data with lua lpeg. You gain in portability -- no need of an external awk -- luigi

[NTG-context] MPinclusions strangeness with labels

2006-06-06 Thread Jean Magnan de Bornier
Hi all, I found something strange with a metapost file where I want to store various definitions for reuse in several tex files; here are example files: ...inc.mp... numeric u; u=.8cm; path AX; AX = (10u,0) -- (0,0) -- (0,10u); picture cax; cax = thelabel(textext(Costs, prices)

Re: [NTG-context] MPinclusions strangeness with labels

2006-06-06 Thread Mojca Miklavec
On 6/6/06, Jean Magnan de Bornier wrote: Now what happens? The label in the mp file Costs, prices is replaced by unknown in the pdf. But if I add a label in the startuseMPgraphic environment, (decommenting line 3 in it), then both labels appear!! I tried several other files, it seems to

Re: [NTG-context] MPinclusions strangeness with labels

2006-06-06 Thread Jean Magnan de Bornier
Le 06 juin à 15:44:05 Aditya Mahajan [EMAIL PROTECTED] écrit notamment: | On Tue, 6 Jun 2006, Jean Magnan de Bornier wrote: | Hi all, | | I found something strange with a metapost file where I want to store | various definitions for reuse in several tex files; here are example | files:

Re: [NTG-context] MPinclusions strangeness with labels

2006-06-06 Thread Jean Magnan de Bornier
Le 06 juin à 16:02:01 Mojca Miklavec [EMAIL PROTECTED] écrit notamment: | On 6/6/06, Jean Magnan de Bornier wrote: | Now what happens? The label in the mp file Costs, prices is replaced by | unknown in the pdf. But if I add a label in the startuseMPgraphic | environment, (decommenting line 3

Re: [NTG-context] MPinclusions strangeness with labels

2006-06-06 Thread Aditya Mahajan
On Tue, 6 Jun 2006, Mojca Miklavec wrote: On 6/6/06, Jean Magnan de Bornier wrote: Now what happens? The label in the mp file Costs, prices is replaced by unknown in the pdf. But if I add a label in the startuseMPgraphic environment, (decommenting line 3 in it), then both labels appear!! I

Re: [NTG-context] MPinclusions strangeness with labels

2006-06-06 Thread Mojca Miklavec
On 6/6/06, Aditya Mahajan wrote: Hi, Aditya! I am surprised that it works without any modification on your machine. Do you have \forMPTEXgraphictrue set in your cont-sys.tex? User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. Is it possible that the mpx files are

Re: [NTG-context] MPinclusions

2006-01-15 Thread Hans Hagen
Hans van der Meer wrote: I thought to incrementally add to MPinclusions by successive blocks \startMPinclusions .. \stopMPinclusions \startMPinclusions .. \stopMPinclusions etc. But according to the generated mp-file it seems to incorporate the last one only. Is this correct and if

Re: [NTG-context] MPinclusions

2006-01-15 Thread Hans van der Meer
Thanks for incorporating this feature. It makes life easier in the case of complex \project's, where now the MPinclusions can be build up in successive stages. yours sincerely, dr. H. van der Meer On Jan 15, 2006, at 17:33, Hans Hagen wrote: Hans van der Meer wrote: I thought to

[NTG-context] MPinclusions

2006-01-13 Thread Hans van der Meer
I thought to incrementally add to MPinclusions by successive blocks \startMPinclusions .. \stopMPinclusions \startMPinclusions .. \stopMPinclusions etc. But according to the generated mp-file it seems to incorporate the last one only. Is this correct and if so, is it an option to