ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Arun Mangalam <arun_mangalam@mac.com>
Cc: "ConTeXt mailing list" <ntg-context@ntg.nl>
Subject: Re: Stand-alone Graphic
Date: Tue, 16 Oct 2001 16:04:58 -0400	[thread overview]
Message-ID: <12F31B7E-C271-11D5-A80B-00050207AA90@mac.com> (raw)
In-Reply-To: <5.1.0.14.1.20011016181947.0314bf50@server-1>

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	other threads:[~2001-10-16 20:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16 13:27 Arun Mangalam
2001-10-16 16:20 ` Hans Hagen
2001-10-16 20:04   ` Arun Mangalam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12F31B7E-C271-11D5-A80B-00050207AA90@mac.com \
    --to=arun_mangalam@mac.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).