Can't you just define a default structurelevel scheme and a default combined list for the six. If a user redefines the structure level scheme, they will just redefine the combined list as well. Would that work?
Denis
Jason Ross via ntg-context <ntg-context@ntg.nl> hat am 24.12.2021 17:45 geschrieben:
Dear list,
Is it possible to set the maximum table of contents depth to a numberrather than providing an explicit list of section names?
Background:
I am developing an exporter for Org mode. In Org, users can specify thenumber of levels they want in the table of contents with a number. Icurrently do this by having the sectioning commands be known to theexporter so I can generate a command like\setupcombinedlist[content][list={section,subsection}]for n=2.
I'm considering using \start/stopsectionlevel for sectioning commandsinstead. That way, users could add \definesectionlevels to the documentpreamble to use whatever sectioning scheme they wanted. However, thiswould mean that the exporter wouldn't know what sectioning commands touse the TOC setup.
Thanks,
Jason___________________________________________________________________________________If your question is of interest to others as well, please add an entry to the Wiki!
wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________