At 02:15 PM 1/8/2003 +0100, you wrote:
2) I can't make the example on page 236 of the MetaFun manual (the one with a framed text with the Zapf (1) label). I use the following code:
\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 (widhpen pencircle scaled 1pt);
^^^^^^^^^^^ withpen ^^^^^^^^^^^^^^^^^^^^
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,width=fit]
\def\StartFrame{\startFunnyText} \def\StopFrame{\stopFunnyText}
\def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{}% Initiate.
Instead of the text in the label box I get the text "unknown". I type
\FrameTitle{Test}
\StartFrame This is just a test. \StopFrame
Regards, Micke P
this works ok here, when corrected for the error, so it looks like your mp installation is not working ok Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------