From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Getting closer
Date: Thu, 03 Jun 1999 00:16:47 +0200 [thread overview]
Message-ID: <3755AD4F.186074B5@wxs.nl> (raw)
In-Reply-To: <3.0.5.32.19990602135139.00a59100@mail.northcoast.com>
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
-----------------------------------------------------------------
next prev parent reply other threads:[~1999-06-02 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-02 20:51 David Arnold
1999-06-02 22:16 ` Hans Hagen [this message]
2000-01-11 19:58 getting closer Johannes Hüsing
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=3755AD4F.186074B5@wxs.nl \
--to=pragma@wxs.nl \
--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).