[NTG-context] how to change metadata halfway through document
Hans Hagen
j.hagen at freedom.nl
Mon Jan 30 10:14:10 CET 2023
On 1/30/2023 1:14 AM, jbf via ntg-context wrote:
> Am trying to understand how best to change the title metadata in
> headertext halfway through a document that has two parts: Constitutions
> and Regulations.
>
> My first attempt (did not work)
>
> \startsetups[headertext]
>
> \startdocument
>
> [metadata:title={Regulations}]
>
> \stopsetups
>
> \setupheadertexts
>
> [ ] [{\getmarking[chapter]\hskip1em \pagenumber}]
>
> [{\pagenumber \hskip1em \setup{headertext}}] [ ]
>
> My second attempt (quite crass, but it works!!) was to create a second
> \startdocument within the main \startdocument (obviously closing it
> towards the end but before the main \stopdocument), this time with
> [metadata:title={Regulations}] instead of the original
> [metadata:title={Constitutions}]. However, I have a strong feeling this
> is not a very elegant solution!
you can try \setupdocument but i didn't test that
-----------------------------------------------------------------
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