On 12/24/2021 5:45 PM, Jason Ross via ntg-context wrote:
Dear list,
Is it possible to set the maximum table of contents depth to a number rather than providing an explicit list of section names?
Background:
I am developing an exporter for Org mode. In Org, users can specify the number of levels they want in the table of contents with a number. I currently do this by having the sectioning commands be known to the exporter so I can generate a command like \setupcombinedlist [content] [list={section,subsection}] for n=2.
I'm considering using \start/stopsectionlevel for sectioning commands instead. That way, users could add \definesectionlevels to the document preamble to use whatever sectioning scheme they wanted. However, this would mean that the exporter wouldn't know what sectioning commands to use the TOC setup. given the amount of reactions i added a simple levels feature ... the best i can do for now is:
\placelist[chapter,section,subsection][levels=2] keep in mind that all should work with the already present selective placement and filtering (criterium) uploaded ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------