[NTG-context] Page number 0 in Table of Contents with makeup

Nicola nvitacolonna at gmail.com
Tue Aug 11 22:25:47 CEST 2020


On 2020-08-11, Pablo Rodriguez <oinos at gmx.es> wrote:
> On 8/11/20 10:11 PM, Nicola wrote:
>> Consider this example:
>>
>>     \definemakeup[toc][align=middle]
>>     \setuppagenumbering[alternative=doublesided]
>>     \starttext
>>       \startfrontmatter
>>         \startmakeup[toc]
>>           \placecontent
>>         \stopmakeup
>>         %\setuppagenumber[number=1]
>>         \startchapter[title={A}]\stopchapter
>>         \startchapter[title={B}]\stopchapter
>>       \stopfrontmatter
>>     \stoptext
>>
>> The first entry in the ToC has page number 0. I can fix it by
>> uncommenting the commented line or by removing the makeup. Is this
>> expected behaviour? If so, why?
>
> Hi Nicola,
>
> makeups have pagestate set to stop by default.
>
> \definemakeup[toc][align=middle, pagestate=start] solves your issue.
>
> I hope it helps,

Yes, it does!

Thanks,
Nicola



More information about the ntg-context mailing list