* How to insert a full page pdf.
@ 2005-04-19 18:14 John R. Culleton
2005-04-19 22:58 ` David Munger
2005-04-20 16:37 ` Willi Egger
0 siblings, 2 replies; 5+ messages in thread
From: John R. Culleton @ 2005-04-19 18:14 UTC (permalink / raw)
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?
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?
TIA
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to insert a full page pdf.
2005-04-19 18:14 How to insert a full page pdf John R. Culleton
@ 2005-04-19 22:58 ` David Munger
2005-04-20 6:38 ` luigi.scarso
2005-04-20 16:37 ` Willi Egger
1 sibling, 1 reply; 5+ messages in thread
From: David Munger @ 2005-04-19 22:58 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to insert a full page pdf.
2005-04-19 22:58 ` David Munger
@ 2005-04-20 6:38 ` luigi.scarso
0 siblings, 0 replies; 5+ messages in thread
From: luigi.scarso @ 2005-04-20 6:38 UTC (permalink / raw)
David Munger wrote:
>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
>
>
Also can help to specify width and height and factor
\externalfigure[filename][page=2,width..,height=.., factor=..]
See
http://texshow.contextgarden.net/
and search for \externalfigure
Actually it seems to me that inclusion doesn't manage things like
comments etc.
luigi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to insert a full page pdf.
2005-04-19 18:14 How to insert a full page pdf John R. Culleton
2005-04-19 22:58 ` David Munger
@ 2005-04-20 16:37 ` Willi Egger
1 sibling, 0 replies; 5+ messages in thread
From: Willi Egger @ 2005-04-20 16:37 UTC (permalink / raw)
Hi John,
John R. Culleton wrote:
> 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?
You can refer to this external doc and include the needed pages as floats:
\externalfigure[cursus-pdf][page=1,width=...].
Probably also
\startTEXpage
\externalfigure[cursus-pdf][page=1,width=...]
\stopTEXpage
works (untested).
if included as float there is no risk that the pagenumbering dos not work.
Kind regards
Willi
> 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?
>
> TIA
>
> John Culleton
> Able Indexers and Typesetters
> http://wexfordpress.com
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to insert a full page pdf
@ 2005-04-21 14:24 olivier Turlier
0 siblings, 0 replies; 5+ messages in thread
From: olivier Turlier @ 2005-04-21 14:24 UTC (permalink / raw)
>
>
>John R. Culleton wrote : I need to insert some example pages from one document into another. Both are 8.5 x 11.
>
As a low end user, I've tryed numerous solutions, those ones below are
working in evey cases for me, hope same for you :
inserting all the 25 pages of a 25 pages pdf :
\getfiguredimensions[25pages.pdf]
\dorecurse{\noffigurepages}{\externalfigure[25pages.pdf][width=\textwidth,height=\textheight,offset=-1cm][page=\recurselevel]}
inserting one (the 16th) page of a 25 pages pdf :
\getfiguredimensions[25pages.pdf]
{\externalfigure[25pages.pdf]
[width=\textwidth,height=\textheight,offset=-1cm][page=16]}
--
Olivier TURLIER
Formation & Métiers
CRP La Rouguière
101 Bd des libérateurs
13367 MARSEILLE cedex 11
tel : 04 91 18 56 00
fax : 04 91 45 14 48
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-21 14:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-19 18:14 How to insert a full page pdf John R. Culleton
2005-04-19 22:58 ` David Munger
2005-04-20 6:38 ` luigi.scarso
2005-04-20 16:37 ` Willi Egger
2005-04-21 14:24 olivier Turlier
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).