From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5881 Path: main.gmane.org!not-for-mail From: Arun Mangalam Newsgroups: gmane.comp.tex.context Subject: Stand-alone Graphic Date: Tue, 16 Oct 2001 09:27:10 -0400 Sender: owner-ntg-context@let.uu.nl Message-ID: <80E030A4-C239-11D5-A80B-00050207AA90@mac.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (Apple Message framework v472) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035396446 5398 80.91.224.250 (23 Oct 2002 18:07:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:07:26 +0000 (UTC) Original-To: "ConTeXt mailing list" Xref: main.gmane.org gmane.comp.tex.context:5881 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5881 Hello, While I was reading the Metafun manual, I found I could create a MetaPost-based stand-alone pdf graphic [with the appropriate bounding box] using \startMPpage ... \stopMPpage My question is: is it possible and, if so, how do I create a stand-alone pdf graphic for other graphics within ConTeXt? For example, I would like to create a stand-alone graphic for the following code [instead of a PDF page]: \startbuffer[sample] \framed [align=middle,width=4cm,background=screen,frame=off] {A \METAPOST\ clip is not the same as a video clip, although we can use \METAPOST\ to produce a video clip.} \stopbuffer \startMPclip{text clip} clip currentpicture to fullcircle shifted (.5,.5) xscaled \width yscaled \height ; \stopMPclip \startuseMPgraphic{clip outline} draw fullcircle xscaled \overlaywidth yscaled \overlayheight withpen pencircle scaled 4mm withcolor .625red ; \stopuseMPgraphic \starttext \defineoverlay[clip outline][\useMPgraphic{clip outline}] \placefigure [here][fig:clipped text 2] {A clipped buffer (text).} {\framed [background=clip outline,offset=overlay,frame=off] {\clip [nx=1,ny=1,mp=text clip] {\externalfigure[sample][type=buffer,width=4cm]}}} \stoptext As you can see, the above is also from the MetaFun manual. :) ConTeXt becomes better and better the more I find out about it. Thank you for any help. - Arun PS. The reason for my question is, that I want to see if I can create an MacOSX graphical program like xfig that uses ConTeXt. It would be both educational for me in terms of understanding the Cocoa framework as well as improve my understanding of ConTeXt.