Re: [NTG-context] inserting pdf

2009-10-08 Thread Mohamed Bana

thank you both.

why can't u just extend the the original macro to take a page range?  
e.g., [page=1-2]


Taco Hoekwater wrote:

luigi scarso wrote:
  

hmm maybe
\copypages



Or, if you need more control, something like this:

  \getfiguredimensions[x.pdf]%
  \imgcount=\noffigurepages\relax
  \dorecurse
  {\the\imgcount}
  {\externalfigure
  [x.pdf]
  [page=\recurselevel]}


Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
  
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inserting pdf

2009-10-08 Thread Peter Rolf

Hi Mohamed!

Mohamed Bana schrieb:

hi folks,

assuming x.pdf has more than 1 page, this only inserts the first.  i'd 
like to insert all the pages.  how would i do that?




\filterpages[file.pdf][1:6][width=18cm]

see
http://wiki.contextgarden.net/Including_pages_from_PDF_document

for more details.


Best wishes,  Peter


startTEXpage
\externalfigure[x.pdf]
\stopTEXpage



\externalfigure[x.pdf][page=1-2]

doesn't work either.  I have to do;

\startTEXpage
\externalfigure[x.pdf][page=1]
\stopTEXpage

\startTEXpage
\externalfigure[x.pdf][page=2]
\stopTEXpage


I'm using

$ pdftex --version
pdfTeX 3.1415926-1.40.9-2.2 (Web2C 7.5.7)

and whatever comes with texlive 2008.

regards,
Mohamed
___ 

If your question is of interest to others as well, please add an entry 
to the Wiki!


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inserting pdf

2009-10-08 Thread Taco Hoekwater


luigi scarso wrote:
> hmm maybe
> \copypages

Or, if you need more control, something like this:

  \getfiguredimensions[x.pdf]%
  \imgcount=\noffigurepages\relax
  \dorecurse
  {\the\imgcount}
  {\externalfigure
  [x.pdf]
  [page=\recurselevel]}


Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inserting pdf

2009-10-08 Thread luigi scarso
On Thu, Oct 8, 2009 at 2:36 PM, Mohamed Bana wrote:

> hi folks,
>
> assuming x.pdf has more than 1 page, this only inserts the first.  i'd like
> to insert all the pages.  how would i do that?
>
> startTEXpage
> \externalfigure[x.pdf]
> \stopTEXpage
>
>
>
> \externalfigure[x.pdf][page=1-2]
>
> doesn't work either.  I have to do;
>
> \startTEXpage
> \externalfigure[x.pdf][page=1]
> \stopTEXpage
>
> \startTEXpage
> \externalfigure[x.pdf][page=2]
> \stopTEXpage
>
>
> I'm using
>
> $ pdftex --version
> pdfTeX 3.1415926-1.40.9-2.2 (Web2C 7.5.7)
>
> and whatever comes with texlive 2008.
>
> regards,
> Mohamed
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>

hmm maybe
\copypages

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] inserting pdf

2009-10-08 Thread Mohamed Bana

hi folks,

assuming x.pdf has more than 1 page, this only inserts the first.  i'd 
like to insert all the pages.  how would i do that?


startTEXpage
\externalfigure[x.pdf]
\stopTEXpage



\externalfigure[x.pdf][page=1-2]

doesn't work either.  I have to do;

\startTEXpage
\externalfigure[x.pdf][page=1]
\stopTEXpage

\startTEXpage
\externalfigure[x.pdf][page=2]
\stopTEXpage


I'm using

$ pdftex --version
pdfTeX 3.1415926-1.40.9-2.2 (Web2C 7.5.7)

and whatever comes with texlive 2008.

regards,
Mohamed
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___