From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55516 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Using frames with metapost background in metapost Date: Mon, 11 Jan 2010 19:28:11 -0500 (EST) Message-ID: References: <4B4B0DE4.8030408@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263256111 12293 80.91.229.12 (12 Jan 2010 00:28:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 00:28:31 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 12 01:28:23 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUUcR-0001ju-GC for gctc-ntg-context-518@m.gmane.org; Tue, 12 Jan 2010 01:28:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF5DCC9B66; Tue, 12 Jan 2010 01:28:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8O4DraaN9X+A; Tue, 12 Jan 2010 01:28:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53759C9B0D; Tue, 12 Jan 2010 01:28:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0755EC9B0D for ; Tue, 12 Jan 2010 01:28:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5JAMoqGYk6Q9 for ; Tue, 12 Jan 2010 01:28:15 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by balder.ntg.nl (Postfix) with ESMTP id 0CD96C9B07 for ; Tue, 12 Jan 2010 01:28:14 +0100 (CET) Original-Received: FROM dhcp128036206191.central.yale.edu (dhcp128036206191.central.yale.edu [128.36.206.191]) By hackers.mr.itd.umich.edu ID 4B4BC21B.B0C20.4515 ; Authuser adityam; 11 Jan 2010 19:28:11 EST In-Reply-To: <4B4B0DE4.8030408@wxs.nl> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55516 Archived-At: 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 : ntg-context@ntg.nl / 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 ___________________________________________________________________________________