Apologies for leaving this so long before answering… away for Christmas and New Year.
I am coming back to think about this. There is a new thread on basically the same question:
So I’ll follow that and see how @bluss’ suggestion is implemented to see If I can fit it into my code, while working out how to create a minimal example (the project in question is ca 2000 lines long with 150 lines of scripting at the beginning of main.typ before the “chapter” text).
I’ll come back to this.
![]()
Mark