Am 03.10.2025 um 18:49 schrieb Jeroen:
Dear group,
I have the following setup for the ToC. I now would like to have the
sections not run all the way to the right of the page but stop at some
20mm from the right margin. With margin=20mm I can do that at the left
margin but I would like to do this for the right side. Is there an easy
way to achieve this?
1. Send complete working minimal example whenever possible.
2. You have to exclude the section entries from the main placement of
the table of contents and flush them as part of the the chapter entries.
%%%% begin example
\setuplist
[chapter]
[style=bold,
headnumber=no,
after=\directsetup{list:section}]
\startsetups[list:section]
\startnarrow[right=3cm][right]
\placelist[section]
\stopnarrow
\stopsetups
\setuplist
[section]
[style=\tfx,
headnumber=no,
alternative=d]
\starttext
\completecontent[list=chapter]
\dorecurse{2}
{\chapter{Chapter \VerboseNumber{#1}}
\dorecurse{10}
{\section{Section \VerboseNumber{##1}}}}
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________