From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113857 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:13:18 +0100 (CET) Message-ID: <255130814.476149.1640380398530@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> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3881716837695306234==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5683"; 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:14:00 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 1n0rt2-0001K6-Ix for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 22:14:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B40E289041; Fri, 24 Dec 2021 22:13:28 +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 7wyzsbFwfvkp; Fri, 24 Dec 2021 22:13:26 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 52B92288F8C; Fri, 24 Dec 2021 22:13:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 15783288F8C for ; Fri, 24 Dec 2021 22:13:24 +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 IW1gyXaR-z4Y for ; Fri, 24 Dec 2021 22:13:23 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.172; helo=mout-p-202.mailbox.org; envelope-from=denismaier@mailbox.org; receiver= Original-Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 1EC91280F9C for ; Fri, 24 Dec 2021 22:13:22 +0100 (CET) Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2: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-202.mailbox.org (Postfix) with ESMTPS id 4JLKXy2ZvgzQkhZ for ; Fri, 24 Dec 2021 22:13:22 +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=1640380400; 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=HQezkY2zH0tZSh7FrXPPhw2mUGqtQ+N68oMA1Od1qXs=; b=O34XbwjNeg/9X8KwtkrtZ1R0AQjOBEeRdjtxSlNT4prFWloAQOoRDIxeDadsiLYDQ4XVLb d/lTVpqqfmsCwGqVL015/juyOOK4zkwWLqX32eD8JCIGgpzo8woLwtU2uKXk7yTNZP5lfF 200h4im2HkyCXgWkzM05+qnVwZ5Iv3GT571f7yfoQBXJRa1qgwVTxrFVUvvxQ0Pv/innMT KLnB1OtpSDVwdPU1bfrZ8lEgldPHgW0sl3soNLh6sjX6oCkYy3q/FQeBgSHRzbq9r0Qy5z 1fAh2/TQ3GclPWCU6cLN/OU3V6EMa+2ps1m1gD+PGuH7CvsOC62lX+8qfiB5hA== In-Reply-To: <5b7c5f45-d4b5-8c59-0662-9ff4eb0e400e@gmail.com> 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:113857 Archived-At: --===============3881716837695306234== Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

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!

___________________________________________________________________________________
--===============3881716837695306234== 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== --===============3881716837695306234==--