Am 25.11.2012 um 18:11 schrieb Marco Patzer <home...@lavabit.com>:

> Hi,
> 
> in one of the last few betas the MetaPost instance
> mechanism broke.
> 
> \defineMPinstance
>  [myinstance]
>  [metafun]
> 
> \startuseMPgraphic{mympgraphic}
>  fill fullsquare scaled 1cm withcolor blue;
> \stopuseMPgraphic
> 
> \starttext\null
>  \useMPgraphic{myinstance::mympgraphic}
> \stoptext


The problem lies in the \uniqueMPgraphic and \useMPgrpahic commands. There is a 
commented
line in each command which is the correct setting and the next line is wrong.

\def\meta_unique_page_graphic#1#2%
  {\meta_begin_graphic_group{#1}%
   \let\overlaystamp\overlaypagestamp
   \setupMPvariables[\m_meta_page_prefix:\currentMPgraphicname][#2]% prefix is 
new here
%    \getvalue{\??mpgraphic\m_meta_page_prefix:\currentMPgraphicname}{}%
   \getvalue{\??mpgraphic\m_meta_page_prefix:#1}{}%
   \meta_end_graphic_group}

\def\meta_use_graphic#1#2%
  {\meta_begin_graphic_group{#1}%
   \doifsomething{#2}{\setupMPvariables[\currentMPgraphicname][#2]}%
  %\getvalue{\??mpgraphic\currentMPgraphicname}\empty
   \getvalue{\??mpgraphic#1}\empty
   \meta_end_graphic_group}

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
___________________________________________________________________________________

Reply via email to