![](https://secure.gravatar.com/avatar/af43724a491832b33f50968db36032ea.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Thu, Oct 8, 2009 at 2:36 PM, 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
___________________________________________________________________________________
hmm maybe \copypages -- luigi
![](https://secure.gravatar.com/avatar/af43724a491832b33f50968db36032ea.jpg?s=120&d=mm&r=g)
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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
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 ___________________________________________________________________________________
participants (4)
-
luigi scarso
-
Mohamed Bana
-
Peter Rolf
-
Taco Hoekwater