From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113862 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:43:15 +0100 (CET) Message-ID: <1834170250.476362.1640382195498@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> <1012577965.476181.1640380854727@office.mailbox.org> <852772263.476301.1640381394514@office.mailbox.org> <4b36f2a9-7fe2-e414-2303-6145e9a1b9f1@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4670560820407742996==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16901"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Denis Maier To: Jason Ross , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 24 22:43:46 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 1n0sLp-0004Df-QX for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 22:43:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0AB4C289098; Fri, 24 Dec 2021 22:43:25 +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 dHQc5USo4UQL; Fri, 24 Dec 2021 22:43:22 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AAFD9289012; Fri, 24 Dec 2021 22:43:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 32B25289012 for ; Fri, 24 Dec 2021 22:43:20 +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 xyU9Gk7jhB5w for ; Fri, 24 Dec 2021 22:43:19 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.152; helo=mout-p-102.mailbox.org; envelope-from=denismaier@mailbox.org; receiver= Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (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 DA712288F8C for ; Fri, 24 Dec 2021 22:43:18 +0100 (CET) Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (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-102.mailbox.org (Postfix) with ESMTPS id 4JLLCV3YbZzQkwr; Fri, 24 Dec 2021 22:43:18 +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=1640382196; 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=+Jc0cTs0GKueMxQx2Hgb1MZdWYK5rvDeSPvnht3z4XU=; b=IK6a6JyFgu7XcHAnQvracsBa/foDn8dTs2Z7FUU+AJOTGgdnB4wZGKyisAaqaAWPGvkBxv YyYGv/jpJFalRZwmvIFx0X0S4bORj5x9EP88DWqJUUqY5NUsVB9siDYzLNlmcStayG5Vcn XFwL1OURyaAD3L+8V800ABE/0y2IwfhXHNoGDB2QUC/iB3ZqytW4f4N3i7cJBaUlrkgLbX aYKvPCGq6U5AP6+K4SLaPFQ+N8Wa91QDWlKiAtONseGTppGMdbHs1kIyDGmdcYKg+OLqzr qhxhMqXmCxkWj4JHGIC6gK37SO7e9c2uAkBlPi9io08OosADcM/py/JW8CR7jA== In-Reply-To: <4b36f2a9-7fe2-e414-2303-6145e9a1b9f1@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:113862 Archived-At: --===============4670560820407742996== Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Jason Ross <jasonross1024@gmail.com> hat am 24.12.2021 22:37 geschrieben:


On 12/24/21 1:29 PM, Denis Maier wrote:

I probably wasn't clear. You will support toc:2.
This:
#+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.
I can't require the user to use more document keywords to get the same
functionality they already have with the other exporters by default.
You don't do that. If you provide default a default sectionlevel scheme, you'll know what toc:2 means.
If a user uses a different scheme provided via #+Context_Section_Levels you can use that to adjust the meaning of toc:2. But if a user uses the default setting toc:2 should be fine. Does that make sense?

Denis
I am really specifically looking for a way _in ConTeXt_ to create a
table of contents with depth `n` regardless of the sectioning used.

Jason
--===============4670560820407742996== 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== --===============4670560820407742996==--