ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nigel King <king@dircon.co.uk>
Subject: Re: Re: Figure reuse
Date: Sun, 26 Oct 2003 00:03:14 +0100	[thread overview]
Message-ID: <BBC0BFC2.174B2%king@dircon.co.uk> (raw)
In-Reply-To: <m23cdiqr2q.fsf@levana.de>

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 <pg@levana.de>
> 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

  reply	other threads:[~2003-10-25 23:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-24 17:39 Nigel King
2003-10-24 21:11 ` Patrick Gundlach
2003-10-25 23:03   ` Nigel King [this message]
2003-10-25 23:24     ` Patrick Gundlach
2003-10-27  9:33       ` Nigel King

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=BBC0BFC2.174B2%king@dircon.co.uk \
    --to=king@dircon.co.uk \
    --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).