12 Jan
2010
12 Jan
'10
12:28 a.m.
On Mon, 11 Jan 2010, Hans Hagen wrote:
\starttext
\boxed{Boxed in text}
\startMPcode draw textext("\boxed{boxed in metapost}") ; %draw textext("\boxframed{boxed in metapost}") ; \stopMPcode
\stoptext
\starttext
\startMPcode picture p ; p := textext("boxed in metapost") ; draw p ; draw (boundingbox p) randomized 9pt withcolor blue; \stopMPcode
\stoptext
for more complex cases use image as in
picture p ; p := image ( draw this; drae that; ) ;
Thanks. I needed this for drawing fancy borders with boxes.mp. Using metapost to directly draw the frame is not as convinient as using \framed, but it does work. Aditya