* how to change metadata halfway through document
@ 2023-01-30 0:14 jbf via ntg-context
2023-01-30 9:14 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: jbf via ntg-context @ 2023-01-30 0:14 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: jbf
[-- Attachment #1.1: Type: text/plain, Size: 786 bytes --]
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!
Thoughts?
Julian
[-- Attachment #1.2: Type: text/html, Size: 2554 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to change metadata halfway through document
2023-01-30 0:14 how to change metadata halfway through document jbf via ntg-context
@ 2023-01-30 9:14 ` Hans Hagen via ntg-context
2023-01-30 9:20 ` jbf via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2023-01-30 9:14 UTC (permalink / raw)
To: jbf via ntg-context; +Cc: Hans Hagen
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to change metadata halfway through document
2023-01-30 9:14 ` Hans Hagen via ntg-context
@ 2023-01-30 9:20 ` jbf via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: jbf via ntg-context @ 2023-01-30 9:20 UTC (permalink / raw)
To: Hans Hagen via ntg-context; +Cc: jbf
Indeed, that works. Thank you.
Julian
On 30/1/23 20:14, Hans Hagen via ntg-context wrote:
> 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
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
>
> If your question is of interest to others as well, please add an entry
> to the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-30 9:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 0:14 how to change metadata halfway through document jbf via ntg-context
2023-01-30 9:14 ` Hans Hagen via ntg-context
2023-01-30 9:20 ` jbf via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).