Nigel et al, OK> Nigel's suggestion compiled. Now, back to where this question originated. This file: \setupoutput[pdf] \runMPgraphicstrue \setupcolors[state=start] \startuseMPgraphic{FunnyFrame} picture p; numeric w, h, o; p:=textext.rt(\MPstring{FunnyFrame}); w:=OverlayWidth; h:=OverlayHeight; o:=BodyFontSize; p:=p shifted (2o,h-ypart center p); draw p; drawoptions (withpen pencircle scaled 1pt withcolor .625red); draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p, h) ; draw boundingbox p; setbounds currentpicture to unitsquare xyscaled (w,h); \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame{\stopFunnyText} \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em {\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} \starttext \FrameTitle{Zapf (1)} \StartFrame Coming back to the use of typefaces in electronic publishing: many of the new typographers receive their knowledge and information about the rules of typography from books, from computer magazines or the instruction manuals which they get with the purchase of a PC or software. \StopFrame \stoptext When saved as meta.tex and compiled with texexec --pdf meta, gives this error: (mpgraph.mp (C:\texmf\metapost\context\base\mp-tool.mp) (C:\texmf\metapost\context\base\mp-spec.mp) (C:\texmf\metapost\context\base\mp-grph.mp) (C:\texmf\metapost\context\base\mp-page.mp) (C:\texmf\metapost\context\base\mp-core.mp)
unknown picture p textext.rt ! Equation cannot be performed (unknown picture=numeric). <to be read again> ( l.223 p:=textext.rt( "\hbox spread 1em {\hss \strut Zapf (1)\hss }");
Nigel, does this file give same error on your system, or does it compile? Thanks.
you should use/load metafun -)
But I have. Indeed, I completely updated Miktex, downloaded the latest Context, refreshed filename database, then ran: You need input metafun ; Early in junk.mp -- Nigel
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context