I want the structure of my book and the table of contents to be:
Introduction chapter
Part the first
First chapter
Second chapter
Part the second
and so on
I also want a so-called horizontal table of contents, with several sections on one line. I found code to do this here: How to adjust the position of entries in the table of contents in ConTeXt?. In my MWE I’ve removed the code to have several sections on one line.
If I use \completecontent to place the table of contents it works, but I can’t then have several sections on one line.
My MWE doesn’t display Introduction chapter in the table of contents. I understand why.
If I remove the % from the line %\part{I don't want this in the table of contents or in the book} then I see Introduction chapter in the table of contents but I also see I don't want this in the table of contents or in the book. Again I can see why.
Is there a way to get what I want ? That will let me use the code to have several sections on one line.
\setuplist [part] \setuplist [chapter]
\startsetups toc:chapter
\placelist[chapter]
\stopsetups
\starttext
\placelist [part] [criterium=text,after=\setups{toc:chapter}]
%\part{I don't want this in the table of contents or in the book}
\chapter{Introduction chapter}
\part{Part the first}
\chapter{First chapter}
\chapter{Second chapter}
\part{Part the second}
\stoptext

