\start pagefigure not working as expected
Hi guys, I created a CTX document and now I am trying to merge it with two other pages from another (already compiled) pdf document. Usually I did this job with PDF Split And Merge software, but if CTX (mkiv, LuaTeX) is capable of doing the job, I'd be glad to use CTX instead. On the wiki I found a code snippet that sounds promising, as I don't want headers, page numbers etc. on the two merged pages: \startpagefigure[file.pdf][page=1]\stoppagefigure So I added another line with page=2 as content, yet the output generates a PDF with the *first page twice* only. In fact, my precompiled doc has 3 pages, of which I want the first two only in my new PDF, even when I use the following code, LuaTeX generates the first page of the precompiled PDF *three times*: \startpagefigure[file.pdf][page=3]\stoppagefigure \startpagefigure[file.pdf][page=1]\stoppagefigure \startpagefigure[file.pdf][page=5]\stoppagefigure Like I mentioned: even although there is no 5th page in file.pdf, LuaTeX pastes the first page three times... Am I overlooking something or was there some undocumented change to the code? Thanks in advance, Sebastian
On 05/25/2017 05:22 PM, cryo shock wrote:
Hi guys,
I created a CTX document and now I am trying to merge it with two other pages from another (already compiled) pdf document. Usually I did this job with PDF Split And Merge software, but if CTX (mkiv, LuaTeX) is capable of doing the job, I'd be glad to use CTX instead.
On the wiki I found a code snippet that sounds promising, as I don't want headers, page numbers etc. on the two merged pages:
Hi Sebastian, how about the following code (I don’t remember when, how or where I found it)? \starttext \startpagemakeup\filterpages[file.pdf][1]\stoppagemakeup \startpagemakeup\filterpages[file.pdf][2]\stoppagemakeup \startpagemakeup\filterpages[file.pdf][3]\stoppagemakeup \stoptext
Like I mentioned: even although there is no 5th page in file.pdf, LuaTeX pastes the first page three times...
If you add a non-existing page, you will get a blank page (with the code above).
Am I overlooking something or was there some undocumented change to the code?
Sorry, but I don’t know. Probably I used pagefigure before discovering pagemakeup. Just in case it might help, Pablo -- http://www.ousia.tk
Your suggestion works fine for me. I tried \filterpages too, as it is
mentioned on the wiki as well, but the pages then got scaled to the
\setuplayout definitions. I didn't think about using it within the
\startpagemakeup environment though.
So thanks Pablo.
P.S.: I'd still love to know why the simple \startpagefigure doesn't work
as expected as I thought that's what it's there for.
2017-05-25 17:44 GMT+02:00 Pablo Rodriguez
On 05/25/2017 05:22 PM, cryo shock wrote:
Hi guys,
I created a CTX document and now I am trying to merge it with two other pages from another (already compiled) pdf document. Usually I did this job with PDF Split And Merge software, but if CTX (mkiv, LuaTeX) is capable of doing the job, I'd be glad to use CTX instead.
On the wiki I found a code snippet that sounds promising, as I don't want headers, page numbers etc. on the two merged pages:
Hi Sebastian,
how about the following code (I don’t remember when, how or where I found it)?
\starttext \startpagemakeup\filterpages[file.pdf][1]\stoppagemakeup \startpagemakeup\filterpages[file.pdf][2]\stoppagemakeup \startpagemakeup\filterpages[file.pdf][3]\stoppagemakeup \stoptext
Like I mentioned: even although there is no 5th page in file.pdf, LuaTeX pastes the first page three times...
If you add a non-existing page, you will get a blank page (with the code above).
Am I overlooking something or was there some undocumented change to the code?
Sorry, but I don’t know. Probably I used pagefigure before discovering pagemakeup.
Just in case it might help,
Pablo -- http://www.ousia.tk ____________________________________________________________ _______________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ____________________________________________________________ _______________________
participants (2)
-
cryo shock
-
Pablo Rodriguez