That is totally awesome! It works except that there is some extra space 
to the left of the picture [not really a problem]. Thanks a lot! :)

The code is now [with a nice clipped Escher picture] and it works:

\setupcolors[state=start]

\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 3mm
                withcolor .625red ;
\stopuseMPgraphic

\defineoverlay
        [clip outline]
        [\useMPgraphic{clip outline}]

\starttext
        \startTEXpage[scale=3000,offset=5pt]
                {\framed
                        [background=clip outline,offset=overlay,frame=off]
                        {\clip
                                [nx=1,ny=1,mp=text clip]
                                
{\externalfigure[escher_ascending][type=jpg,width=3cm,height=3cm]}}}
        \stopTEXpage
\stoptext

On Tuesday, October 16, 2001, at 12:20 PM, Hans Hagen wrote:

> At 09:27 AM 10/16/2001 -0400, Arun Mangalam wrote:
>
>
>> 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]:
>
> \startTEXpage[scale=4000,offset=3pt]
> Let me show you a little secret!
> \stopTEXpage
>
> From this you can deduce that there is a general underlaying mechanism 
> at work -)
>
> Hans

Reply via email to