ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* no frontmatter head on recto page
@ 2020-09-30  9:46 jbf
  2020-09-30 11:44 ` Taco Hoekwater
  0 siblings, 1 reply; 6+ messages in thread
From: jbf @ 2020-09-30  9:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


___________________________________________________________________________________
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] 6+ messages in thread

* Re: no frontmatter head on recto page
  2020-09-30  9:46 no frontmatter head on recto page jbf
@ 2020-09-30 11:44 ` Taco Hoekwater
  2020-09-30 12:56   ` Alan Bowen
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Taco Hoekwater @ 2020-09-30 11:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On 30 Sep 2020, at 11:46, jbf <roma83537@gmail.com> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: no frontmatter head on recto page
  2020-09-30 11:44 ` Taco Hoekwater
@ 2020-09-30 12:56   ` Alan Bowen
  2020-09-30 12:58     ` Alan Bowen
  2020-09-30 21:47   ` jbf
  2020-09-30 22:50   ` jbf
  2 siblings, 1 reply; 6+ messages in thread
From: Alan Bowen @ 2020-09-30 12:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 <taco@elvenkind.com> wrote:

>
>
> > On 30 Sep 2020, at 11:46, jbf <roma83537@gmail.com> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2523 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] 6+ messages in thread

* Re: no frontmatter head on recto page
  2020-09-30 12:56   ` Alan Bowen
@ 2020-09-30 12:58     ` Alan Bowen
  0 siblings, 0 replies; 6+ messages in thread
From: Alan Bowen @ 2020-09-30 12:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

My apologies for the mixed message.

A.

On Wed, Sep 30, 2020 at 8:56 AM Alan Bowen <bowenalan03@gmail.com> wrote:

> 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 <taco@elvenkind.com> wrote:
>
>>
>>
>> > On 30 Sep 2020, at 11:46, jbf <roma83537@gmail.com> 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
>>
>> ___________________________________________________________________________________
>>
>

[-- Attachment #1.2: Type: text/html, Size: 3273 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] 6+ messages in thread

* Re: no frontmatter head on recto page
  2020-09-30 11:44 ` Taco Hoekwater
  2020-09-30 12:56   ` Alan Bowen
@ 2020-09-30 21:47   ` jbf
  2020-09-30 22:50   ` jbf
  2 siblings, 0 replies; 6+ messages in thread
From: jbf @ 2020-09-30 21:47 UTC (permalink / raw)
  To: Taco Hoekwater; +Cc: mailing list for ConTeXt users

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 <roma83537@gmail.com> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 6+ messages in thread

* Re: no frontmatter head on recto page
  2020-09-30 11:44 ` Taco Hoekwater
  2020-09-30 12:56   ` Alan Bowen
  2020-09-30 21:47   ` jbf
@ 2020-09-30 22:50   ` jbf
  2 siblings, 0 replies; 6+ messages in thread
From: jbf @ 2020-09-30 22:50 UTC (permalink / raw)
  To: Taco Hoekwater; +Cc: ntg >> mailing list for ConTeXt users

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 <roma83537@gmail.com> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2020-09-30 22:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30  9:46 no frontmatter head on recto page jbf
2020-09-30 11:44 ` Taco Hoekwater
2020-09-30 12:56   ` Alan Bowen
2020-09-30 12:58     ` Alan Bowen
2020-09-30 21:47   ` jbf
2020-09-30 22:50   ` 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).