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


On 12/24/21 9:49 AM, Denis Maier via ntg-context wrote:
For the six = for the toc...
Denis Maier via ntg-context <ntg-context@ntg.nl> hat am 24.12.2021
18:42 geschrieben:


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

The way the user specifies TOC depth in Org is e.g. "#+OPTIONS: toc:2".
All exporters support that method.

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.)

Denis
Jason
___________________________________________________________________________________
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
___________________________________________________________________________________