Re: [NTG-context] How to insert a full page pdf.

2005-04-20 Thread Willi Egger
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to insert a full page pdf.

2005-04-19 Thread luigi.scarso
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to insert a full page pdf.

2005-04-19 Thread David Munger
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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to insert a full page pdf.

2005-04-19 Thread 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?

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