Am 25.11.2012 um 18:11 schrieb Marco Patzer
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