no frontmatter head on recto page
For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using: \definehead [foreword] [chapter]... \setuphead [foreword] [frontpartlabel=foreword, conversion=empty] Then starting this section in the main body with \startforeword...\stopforeword. As 'foreword' is based on chapter, I thought it would all work correctly given that I already have: [{\hfill\getmarking[chapter]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] And I also have: \setupsectionblock[frontpart][page=yes] in case that is important as well. I am getting the verso page header (the book's title, obviously coming from the \documentvariable{metadata:title}), but not the recto header (in this case 'Foreword'). What am I doing wrong? I tried two solutions to solve the problem, neither worked: 1. In \setuphead I thought perhaps I might need to add placehead=yes, but that did nothing. 2. I also tried [{\hfill\getmarking[chapter, foreword]\hfill}][] in case I needed to add in 'foreword', having defined it as a head. That did nothing either. Any clues as to what I am missing? Julian
On 30 Sep 2020, at 11:46, jbf
wrote: For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using:
\definehead [foreword] [chapter]…
‘chapter' suppresses the header by default on the first page. at a guess: \setuphead[foreword][header=start] Best wishes, Taco
Thank you, Taco, for the fix *and* the helpful explanation.
The file now works (and I can now put this project to bed!)
Alan
On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater
On 30 Sep 2020, at 11:46, jbf
wrote: For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using:
\definehead [foreword] [chapter]…
‘chapter' suppresses the header by default on the first page.
at a guess:
\setuphead[foreword][header=start]
Best wishes, Taco
___________________________________________________________________________________ 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
___________________________________________________________________________________
My apologies for the mixed message.
A.
On Wed, Sep 30, 2020 at 8:56 AM Alan Bowen
Thank you, Taco, for the fix *and* the helpful explanation.
The file now works (and I can now put this project to bed!)
Alan
On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater
wrote: On 30 Sep 2020, at 11:46, jbf
wrote: For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using:
\definehead [foreword] [chapter]…
‘chapter' suppresses the header by default on the first page.
at a guess:
\setuphead[foreword][header=start]
Best wishes, Taco
___________________________________________________________________________________ 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
___________________________________________________________________________________
No, Taco, that is not resolving the problem. I added your suggestion (header=start) to what I already had for \setuphead for 'foreword': \setuphead [foreword] [frontpartlabel=foreword, conversion=empty, header=start] but it makes no difference. I am already aware that chapter, on which my foreword definition is based, by default does not give a header on the first page. It is subsequent recto pages that are the problem. So, for example, the Foreword (which starts on a recto page) has three pages. The first, correctly, has no header. The second carries the book title header (called in by [{\hfill\documentvariable{metadata:title}\hfill}][] I presume). But the third and final page does not have the header 'Foreword' which my publisher wants. The same is happening with other frontmatter items (and indeed, appendices too) I have defined, but if I solve the Foreword problem, I will know how to solve those too. When I had this problem with another book I was working on, having 'yes' in \setupsectionblock[frontpart][page=yes] seemed to solve the problem, but I didn't understand why it did! And it does not work in this instance. It may be that something else in my preamble is missing something or indeed preventing something! Any other thoughts on this? I could, offlist, send you my entire preamble (too long for the list I think) just in case something else is causing the problem that I am unaware of, but maybe you or someone else can still identify just what it is that might stopping the 'Foreword' recto header from appearing in this case. Julian On 30/9/20 9:44 pm, Taco Hoekwater wrote:
On 30 Sep 2020, at 11:46, jbf
wrote: For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using:
\definehead [foreword] [chapter]… ‘chapter' suppresses the header by default on the first page.
at a guess:
\setuphead[foreword][header=start]
Best wishes, Taco
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Taco, I found a solution. Instead of trying to adjust what I have in the preamble, I simply went to where I begin the Foreword and included [marking={Foreword}]: \startforeword[marking={Foreword}][author={Author's name}]. And of course, to prevent the first page of Foreword from having the header, I have, in the preamble: \setuphead [foreword] [frontpartlabel=foreword, header=empty, conversion=empty] where the header=empty prevents that. So, while your proposed solution did not work for my situation, it did work as a stimulus to think the matter through and see what other solutions I could come up with! Thank you. Julian On 30/9/20 9:44 pm, Taco Hoekwater wrote:
On 30 Sep 2020, at 11:46, jbf
wrote: For some reason that I cannot work out, the recto page header is not appearing in frontmatter sections like Foreword. It is important to note that for this item I am using:
\definehead [foreword] [chapter]… ‘chapter' suppresses the header by default on the first page.
at a guess:
\setuphead[foreword][header=start]
Best wishes, Taco
___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (3)
-
Alan Bowen
-
jbf
-
Taco Hoekwater