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 I was looking for was (it's even mentioned in the manual):

  \startMPdefinitions{foo}
    …
  \stopMPdefinitions

That means we have:

- MPdefinitions     (for instance-local definitions)
- MPinclusions      (global definitions)
- MPinitializations (global definitions, can be disabled for an MP instance)
- MPextensions      (???, seems to be the same as MPinitializations)

And all four include code for use within MP graphics. That really is
confusing!

> Maybe I'm missing the obvious here.

Yes, I did :)

Marco

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to