From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13943 Path: main.gmane.org!not-for-mail From: Nigel King Newsgroups: gmane.comp.tex.context Subject: Re: Re: Figure reuse Date: Sun, 26 Oct 2003 00:03:14 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1067123426 12395 80.91.224.253 (25 Oct 2003 23:10:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2003 23:10:26 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Oct 26 01:10:24 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADXY8-0002Xh-00 for ; Sun, 26 Oct 2003 01:10:24 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 7118310B28; Sun, 26 Oct 2003 01:10:20 +0200 (MEST) Original-Received: from mailhost1.dircon.co.uk (mailhost1.dircon.co.uk [194.112.32.65]) by ref.ntg.nl (Postfix) with ESMTP id 6C31810B27 for ; Sun, 26 Oct 2003 01:03:39 +0200 (MEST) Original-Received: from [192.168.1.5] (pipinghot.gw.dircon.net [195.157.154.158]) by mailhost1.dircon.co.uk (Postfix) with ESMTP id DA0D3576A4 for ; Sun, 26 Oct 2003 00:03:37 +0100 (BST) User-Agent: Microsoft-Entourage/10.1.4.030702.0 Original-To: In-Reply-To: Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13943 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13943 Patrick, Thank you very much for this. It works very nicely creating a small file and yet enabling a nice consistency in the document. It took me ages to find the options for \clip your hint seemed to suggest that it was in details.pdf. It turned out to be in the Metafun manual. I finally used \clip[width=xxx,height=yyy,hoffset=xx,voffset=yy]{\externalfigure[pic]} \scale I could find no documentation for but I discovered that the \scale[width=xxxx] provides the appropriate magic when needed. It is a pity that setup-en.pdf is not up to date with these commands the various texshow and other web tools that people have developed are missing them as well. I imagine a single source of all the commands would help these developers enormously. Thanks again -- Nigel > From: Patrick Gundlach > Hi, > >> I believe that pdfs can make multiple use of pictures (and other objects). > > right. > >> I have a fairly large picture which I want to include a number of >> times, once as the full picture and several other times >> concentrating on a portion of it. Are there any commands for >> cropping other than going through metapost? > > Yes. Try this example. You can see from the resulting pdf file that > the cow.pdf gets included only once. > > > \useexternalfigure[cow] > \starttext > \setupclipping[nx=3,ny=3] > % 1/3 of a sliced cow > \hbox{% > \clip [x=1,y=2]{\externalfigure[cow]} > \clip [x=2,y=2]{\externalfigure[cow]} > \clip [x=3,y=2]{\externalfigure[cow]} > } > > \blank[4*big] > % its in the details: > \scale[sx=2,sy=2]{\clip [x=2,y=2]{\externalfigure[cow]}} > \stoptext > > > Patrick > -- > You are your own rainbow! > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context