[NTG-context] \writetolist not writing the number to the TOC
Willi Egger
w.egger at boede.nl
Sun Mar 26 15:10:11 CEST 2023
Hello Hraban,
thank you. I missed this point. However, adding a dot behind the number does not appear to solve the problem. The titleâs text still starts at the left margin which looks very odd.
Kind regards
Willi
> On 26 Mar 2023, at 12:51, Henning Hraban Ramm via ntg-context <ntg-context at ntg.nl> wrote:
>
> Am 25.03.23 um 23:05 schrieb Willi Egger via ntg-context:
>> Good evening!
>> I have a setup in which I need to send info to the TOC:
>> Consider the following example:
>> \starttext
>> \starttitle[title=Contents]
>> \placelist[chapter][criterium=all]
>> \stoptitle
>> \startchapter[title=Mychapter]
>> \input knuth
>> \startsubject[title=Subject will be in TOC]
>> \writetolist[chapter]{1}{I am in TOC!}
>> \input ward
>> \stopsubject
>> \stopchapter
>> \stoptext
>> According to the Wiki I should get te number (1) in the TOC. Instead the text starts at the height of the chapter-numbering and is not carrying the given number.
>> Am I doing something wrong?
>
> The wiki says:
>
> âThe default table of contents is combined list. To write to it one has to choose the level to which it should be inserted: \writetolist[chapter]{1.}{Chapter list entry A},
> \writetolist[section]{1.1}{Section list entry A}, etc.â
>
> https://wiki.contextgarden.net/Command/writetolist
>
> So maybe you need a dot?
>
> Otherwise I donât know.
>
> Hraban
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________
More information about the ntg-context
mailing list