* Problems with MetaFun and registers
@ 2006-10-23 18:32 Fredrik Sjunnesson
0 siblings, 0 replies; only message in thread
From: Fredrik Sjunnesson @ 2006-10-23 18:32 UTC (permalink / raw)
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
fredrik.sjunnesson@acobiaflux.se
Tel: +46 (0) 31 722 48 11
Fax: +46 (0) 31 722 48 01
Mob: +46 (0) 733 27 92 41
www.acobiaflux.se
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-23 18:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-23 18:32 Problems with MetaFun and registers Fredrik Sjunnesson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).