You need to write to a list at the end of your document if you want what you are writing to appear at the end of the list.

Is there something stopping you just outputting the line of text after the TOC? Do you need it to appear as if it was part of the TOC?

Duncan

On Tue, 8 Oct 2024 at 10:25, jbf <roma83537@gmail.com> wrote:

I am struggling with something that might be simple enough, but...

The author is insisting that on the TOC page, after all the chapters and their page numbers, I need to add the line (obviously without any page number associated with it): 'All translations are by the author'.

I have trie various combinations of \writetolist and \writebetweenlist, and I can get his comment at the beginning of the TOC, but I cannot get it at the end, and perhaps with some vertical space separation from the main list. How can I place it at the end?

Here is my simple MWE where at least I can get it at the beginning:

\starttochead[title={Contents}]

\setcounter [userpage] [7]

\setupheader[state=stop]

\placecombinedlist[content]

\writebetweenlist[chapter]{All translations are by the author!}

\stoptochead

Julian

___________________________________________________________________________________
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
___________________________________________________________________________________