On 07/18/2018 09:08 PM, Wolfgang Schuster wrote:
Sorry, but how do I apply that with to imposed pages with \insertpages?
I know that \filterpages is there, but I need to have the complete document to print only some of the pages.
You can get the number of pages of the included file with \getfiguredimensions.
Afterwards you can use a loop where you add the markpage commands at the begin and end of the range, below is a simple example but it’s easy to write a better loop with Lua. I see that not having a way to specify ranges in \markpages makes complex to specify many ranges in a document.
Sorry, I understood the solution (I used a Lua loop for to impose pages in a new PDF document some time ago), but I cannot stop thinking why the approach to get page ranges looks so complex to me. Many thanks for your help, Pablo -- http://www.ousia.tk