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 inclusions are intended for the "user". It appears that
> initializations is used to pass dynamic things from ConTeXt to MP.

This means we have two cases:

  - read one single time (once)
  - read one time per graphic (each)

And another two cases:

  - global to all instances (global)
  - local to a particular instance (local)

And we have four inclusion environments. I don't know how to map
them to the cases listed above.

- MPdefinitions     (local, ???)
- MPinclusions      (global, ???)
- MPinitializations (global, each)
- MPextensions      (global, once)

I don't understand the need of so many different environments. E.g.
MPinclusions could be global unless an argument specifying the
instance is provided.

> It would be nice for someone who understands this all to explain it.

+1

> I still have not figured out how to specify MPinclusions for a
> particular instance.

Try \startMPdefinitions{myinstance}

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