[NTG-context] Clipping multiple PDFs

Pablo Rodriguez oinos at gmx.es
Tue Aug 23 19:38:33 CEST 2022


On 8/23/22 17:27, Aditya Mahajan via ntg-context wrote:
> [...]
> For a more low-level interface to finding the number of pages, see:
>
> https://adityam.github.io/context-blog/post/include-multi-page-pdf/

Hi Aditya,

I wonder whether your final definition should be rewritten as:

 \unexpanded\def\includePDF[#1]%
    {\getfiguredimensions[#1]
     \dorecurse{\noffigurepages}
        {\startTEXpage
            \externalfigure[#1][page=\recurselevel]
         \stopTEXpage}}

At least, otherwise it will only work with "talk.pdf".

Or am I missing something?

Many thanks for your comment,

Pablo


More information about the ntg-context mailing list