![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
jbf schrieb am 04.09.2023 um 08:34:
I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter):
Chapter 1 ...................................................5
Section 1 5, Section 2 6, Section 3 7,
Section 4 8, Section 5 9 etc
Chapter 2 ................................................10
Section 1 10, Section 2 11, Section 3 12,
Section 4 13, Section 5 14 etc
As I really had no idea how to do this, I found https://wiki.contextgarden.net/Horizontal_Table_of_Contents thinking it might help, but none of it compiles (for me) in LMTX. So I tried something different, e.g.
[...]
While that produces a result, it is nothing like what I want above. Has anyone put together a TOC of this kind and might be able to give me a hint to follow?
Please send *working* (which include some dummy content) examples. The example below results in section entries which are listed as a paragraph, what output do you expect here. \setuplist[chapter][alternative=c] \setuplist[section][alternative=d] \starttext \completecontent \dorecurse{2} {\chapter{Chapter #1} \dorecurse{10}{\section{Section ##1}}} \stoptext Wolfgang