[NTG-context] How to display the pages of a particular section in another PDF?

Hans Hagen j.hagen at xs4all.nl
Tue Dec 6 20:02:48 CET 2022

On 12/6/2022 6:33 PM, Pablo Rodriguez via ntg-context wrote:
> On 12/6/22 09:05, Hans Hagen via ntg-context wrote:
>> On 12/6/2022 1:39 AM, Joel wrote:
>>> Thanks so much! It took some work for me to figure out how to make it
>>> work, but it now works great!
>> i added \firstsectionpage and \lastsectionpage that (i guess) Pablo will
>> document at the wiki
> Many thanks for the implementation, Hans.
> https://wiki.contextgarden.net/Including_pages_from_PDF_documents
> contains the new information (please, Joel, could you check whether the
> explanation is clear?).
> But I’m afraid I’m seeing a potential problem here, if the source PDF is
> doublesided, \lastsectionpage from a reference may be an empty page.
There is not much we do about that. Oen can then do

{\numexpr\lastsectionpage... -1\relax}


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the ntg-context mailing list