ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* further to the earlier header question
@ 2020-08-12  5:41 jbf
  0 siblings, 0 replies; only message in thread
From: jbf @ 2020-08-12  5:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2263 bytes --]

Clearly I am now getting myself quite confused where headers are 
concerned, and have sought as much info as I can on the wiki, but am not 
getting the desired results. We are talking about ConTeXt MkIV and a 
doublesided document.

If I only use \chapter throughout and have my setup as:

\setupheadertexts
   [{\hfill\getmarking[chapter]\hfill}][]
   [{\hfill\documentvariable{metadata:title}\hfill}][]

then everything works as it should: Chapter title as header on recto 
pages and book title as header on verso pages. And as chapters change so 
does the header on the recto page.

But this book has some 'chapters' that need to be unnumbered, for which 
I am using \title in the main body (as well as in frontmatter). 
Everything else about this choice works, except for the recto headers.

If I use ONLY the setup above, then fairly obviously the numbered 
Chapters work, but those with \title continue to use the previous 
Chapter header for the recto pages (the verso pages with the book title 
is okay). So I understand that I may need to also give a command for the 
\title 'chapters' to act the way the other numbered chapters do. So I 
thought I could do this by simply adding the same set of commands above, 
but this time using title:

\setupheadertexts
   [{\hfill\getmarking[*chapter*]\hfill}][]
   [{\hfill\documentvariable{metadata:title}\hfill}][]

\setupheadertexts
   [{\hfill\getmarking[*title*]\hfill}][]
   [{\hfill\documentvariable{metadata:title}\hfill}][]

However, when I do this, I get strange behaviour: now the numbered 
chapters do not show their recto header at all (the verso book title 
still appears though). The unnumbered \title chapters now show the 
headers but the same behaviour as indicated above occurs - the next 
numbered chapter after that carries the previous unnumbered chapter's title.

Obviously I cannot do things the way I am doing it, but I cannot find 
how to do it.

The other behaviour is the one I noted in an earlier post -  if I get 
\title (used for an introduction) in the frontmatter to work with the 
correct headers, in the case of this Introduction (which is seven 
pages), the last of the recto pages does not bear the header 
'Introduction'. Perhaps this is expected behaviour?

Julian



[-- Attachment #1.2: Type: text/html, Size: 2748 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-12  5:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12  5:41 further to the earlier header question jbf

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).