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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to