Jason Ross via ntg-context <ntg-context@ntg.nl> hat am 24.12.2021 22:22 geschrieben:

On 12/24/21 1:20 PM, Denis Maier via ntg-context wrote:

>> I see.
>> Next try: add a new option
>> "#+Context_Section_Levels:
>> Thus will take an alist. Now you'll know about the user defined
>> structure levels and the toc option can be translated to the
>> corresponding setting. (Here again, you can if course define
>> reasonable defaults.)

Actually,  you don't need an alist. A simple quotes list should be enough:

#+Context_Section_Levels: '(chapter section subsection)

That isn't going to work. The interface needs to be the same as for the
other exporters for TOC control. I need to support "toc:2".
I probably wasn't clear. You will support toc:2.
#+Context_Section_Levels: '(chapter section subsection)
will translate into a definesectionlevels command and inform your exporter about the used sectionlevels. Once the used commands are known it should be possible to map toc:2 to a combinedlist definition.
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