From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/489 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Getting closer Date: Thu, 03 Jun 1999 00:16:47 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3755AD4F.186074B5@wxs.nl> References: <3.0.5.32.19990602135139.00a59100@mail.northcoast.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391345 24466 80.91.224.250 (23 Oct 2002 16:42:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:42:25 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: David Arnold Xref: main.gmane.org gmane.comp.tex.context:489 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:489 David Arnold wrote: > I can resize the graphics in Metapost, but how would I scale and resize in > Context one the graphics are already drawn? Hm. The graphics you're refering too concern backgound and graphics generated with the right dimensions. You can reuse them by putting them in a buffer: \starttext \startbuffer[hans] \startuseMPgraphic{dummy} fill unitsquare scaled 100 withcolor red ; \stopuseMPgraphic \useMPgraphic{dummy} \stopbuffer \externalfigure[hans.tmp][width=3cm] \externalfigure[hans.tmp][width=2cm] \externalfigure[hans.tmp][width=1cm] \useexternalfigure[bighans][hans.tmp][width=3cm] \useexternalfigure[medhans][hans.tmp][width=4cm] \placefigure{One}{\externalfigure[bighans]} \placefigure{Two}{\externalfigure[medhans]} \stoptext Actually, this can be done with tables and text too! Using reusable graphic is sort of redundant here. Normally graphics are external. In that case you make a MP graphic (separate file) and just include it with: \externalfigure[something.2][width=4cm] given that beginfig(2) etc is used. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------