![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------