From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113858 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Setting table of contents depth by number rather than by list Date: Fri, 24 Dec 2021 22:20:54 +0100 (CET) Message-ID: <1012577965.476181.1640380854727@office.mailbox.org> References: <585d8aea-8e50-e4c7-cb62-e9f62506fba0@gmail.com> <189952948.474639.1640367767341@office.mailbox.org> <1284980593.474685.1640368147804@office.mailbox.org> <5b7c5f45-d4b5-8c59-0662-9ff4eb0e400e@gmail.com> <255130814.476149.1640380398530@office.mailbox.org> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0678924582594452784==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39729"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Denis Maier To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 24 22:21:28 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n0s0F-000A7L-32 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 22:21:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6AC81289094; Fri, 24 Dec 2021 22:21:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eVNQAPsQ8KFS; Fri, 24 Dec 2021 22:21:00 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6F4FB288F8C; Fri, 24 Dec 2021 22:21:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 62211288F8C for ; Fri, 24 Dec 2021 22:20:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r5Uz16agUzHF for ; Fri, 24 Dec 2021 22:20:58 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.161; helo=mout-p-103.mailbox.org; envelope-from=denismaier@mailbox.org; receiver= Original-Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 87925280F9C for ; Fri, 24 Dec 2021 22:20:58 +0100 (CET) Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4JLKjk0NTnzQlMN for ; Fri, 24 Dec 2021 22:20:58 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1640380856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/VzmdvZe+YvfjazlPJbeQZexSm49TbF0/M8nFqGHHmE=; b=J2+D52u5loizsD0HEg+ecAf58BHPJHRjr3vw89PxNrpjVZr/Bl16WPBiEPnjQZy5AapHFk sc57/ML+MKZ7q+4GkVP5xomTjr/vuHZ376SXcRM3eGEF8xpC8ORSWCw2Wnz+/UEAKmWaF6 qk2PA2JJrBdPQd/DnIttzvioaUWBXWLPCLYU3NHpnKARr10qtQIaL6J5eQK56SEE6c8q3P SyZh8Ay7mlY67mw24hccFOrZDrfQpIZu9FI2eNlMTK+fFODrk14Etf7M/eoLznJO14zzxU aIKsW6qpSHLuMYcYAqlu705RysV3857/I4Dx3VBWf87z7M95JWV2NSJ6bjUGlg== In-Reply-To: <255130814.476149.1640380398530@office.mailbox.org> X-Priority: 3 Importance: Normal X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:113858 Archived-At: --===============0678924582594452784== Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Denis Maier via ntg-context <ntg-context@ntg.nl> hat am 24.12.2021 22:13 geschrieben:



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

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

#+Context_Section_Levels: '(chapter section subsection)

Denis

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

___________________________________________________________________________________
--===============0678924582594452784== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0678924582594452784==--