Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 11:24:
Hi,
I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection.

 \setuplist
   [chapter,section,subsection]
 [width=fit,distance=\spaceamount]

 \setuplist
   [chapter]
 [alternative=b]

 \setuplist [chapter][style=bold]


 \setuplist [section]    [margin=1em]
 \setuplist [subsection] [margin=2.75em]


Use fixed values for the width.

\setuplist
  [chapter]
  [width=1em]


\setuplist
  [section]
  [margin=1em,% chapter width
   width=1.75em]

\setuplist
  [subsection]
  [margin=2.75em,% chapter width + section width
   width=2em]

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to