I have problems with the register macro in MetaFun.

When I try
====================================================================== 
\setupcolors    [state=start]

\starttext
\definelayer    [test]

\startuseMPgraphic{oeps}
  path p ; p := fullcircle scaled 6cm ;
  fill p withcolor .8white ;
  draw p withpen pencircle scaled 1mm withcolor .625red ;
  register ("somepos-1",0cm,0cm,center currentpicture) ;
\stopuseMPgraphic

\setMPlayer [test] [somepos-1] [location=c]
  {Does it work all right?}

\getMPlayer [test]{\useMPgraphic{oeps}}
\stoptext
======================================================================

(which is essentially copied from the manual) in ConTeXt live I get the
following error message

======================================================================
! Illegal unit of measure (pt inserted).
<to be read again> 
                   -
\pospxywhd ...fnum \positionanchormode =\plusone -
                                                  \MPx \pageanchor \fi
\rela...
l.7 ...hd{somepos-1}{0}{5687206}{5687206}{0}{0}{0}
                                                  
? 
! Emergency stop.
<to be read again> 
                   -
\pospxywhd ...fnum \positionanchormode =\plusone -
                                                  \MPx \pageanchor \fi
\rela...
l.7 ...hd{somepos-1}{0}{5687206}{5687206}{0}{0}{0}
                                                  
No pages of output.
======================================================================

Am I doing something wrong or is the register functionality broken in
ConTeXt 2006.10.13? 

/Fredrik

--------------------------------
Teknisk projektledare
Ph.D. Complex Systems
AcobiaFLUX AB
[EMAIL PROTECTED]
Tel: +46 (0) 31 722 48 11
Fax: +46 (0) 31 722 48 01
Mob: +46 (0) 733 27 92 41
www.acobiaflux.se 
 

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to