ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Munger <mungerd@users.sourceforge.net>
Subject: Re: How to insert a full page pdf.
Date: Tue, 19 Apr 2005 18:58:39 -0400	[thread overview]
Message-ID: <1113951519.10209.38.camel@tempete.lac.qc.ca> (raw)
In-Reply-To: <200504191814.10223.john@wexfordpress.com>

Hi John,

John R. Culleton :
> I need to insert some example pages from one document into
> another. Both are 8.5 x 11. 
> 
> I have read the old posts about \startTEXpage etc. and looked at
> the source code. But I still have a few questions:
> 1. Can I select e.g., just page 2 from the external document to
> insert in my document? How?

I'm no expert, but here's the way I do it:

\externalfigure[filename][page=2]

Then, I adjust the clipping to -- for instance -- get rid of the page
number of the inserted `figure', as well as of its top and left margins.

\clip [ voffset=1.25in, % clip the topmost part of the inserted page
        hoffset=1.5in,  % clip the left margin of the inserted page
        height=9in,     % clip the bottom of the inserted page
        width=5.1in]    % clip the right margin
      {\externalfigure[filename][page=2]}}

And, if you like, you can put all this into a \midaligned{}.


> 2. Does Context automatically bump its page counter to compensate
> for the inserted page or pages, or do I have to adjust it after
> each such insertion?

Well, if you treat the inserted PDF page as a figure, the page number of
your main document won't be affected. Just clip the page number (if any)
which lies on the inserted PDF page.


Regards,

David

  reply	other threads:[~2005-04-19 22:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 18:14 John R. Culleton
2005-04-19 22:58 ` David Munger [this message]
2005-04-20  6:38   ` luigi.scarso
2005-04-20 16:37 ` Willi Egger
2005-04-21 14:24 olivier Turlier

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=1113951519.10209.38.camel@tempete.lac.qc.ca \
    --to=mungerd@users.sourceforge.net \
    --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).