Duncan Hothersall schrieb am 08.10.2024 um 22:22:
Sorry for not being clearer Julian, I was meaning could you just do
something like this?
\starttochead[title={Contents}]
\setupheader[state=stop]
\placecombinedlist[content]
\blank[2*big]
Note: All translations throughout the book are my own.
\stoptochead
Obviously you might need to apply styling to that line if you need it to
match whatever you have set up for the combinedlist, but it wasn't clear
to me why you needed the text to be *in* the TOC.
This seems to be the best solution.
Below is a different method how a custom header can be used to create
additional toc entries on the chapter level.
%%%% begin example
\definehead
[chapternote]
[chapter]
[page=no,
number=no,
placehead=no]
\setuplist
[chapternote]
[margin=2em,
pagenumber=no]
\startdocument
\completecontent[list={chapter,chapternote}]
\dorecurse{10}{\chapter{Chapter \convertnumber{word}{#1}}}
\chapternote{All translations are by the author!}
\stopdocument
%%%% end example
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________