From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113863 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:48:05 +0100 (CET) Message-ID: <818516295.476401.1640382485830@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> <1834170250.476362.1640382195498@office.mailbox.org> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3269338262863397974==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38844"; 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:48:32 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 1n0sQS-0009yg-L0 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 22:48:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6BE942890E8; Fri, 24 Dec 2021 22:48:12 +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 Yg33jvi0IrOq; Fri, 24 Dec 2021 22:48:10 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C1C0F288F68; Fri, 24 Dec 2021 22:48:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B7134288F68 for ; Fri, 24 Dec 2021 22:48:09 +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 jBwafWrYTuaW for ; Fri, 24 Dec 2021 22:48:09 +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 2F9D82877D7 for ; Fri, 24 Dec 2021 22:48:08 +0100 (CET) Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [80.241.60.245]) (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 4JLLK44zc7zQkkK for ; Fri, 24 Dec 2021 22:48:08 +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=1640382487; 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=kRQIYuOJbajF/fxOvui0mqLgaIQrx30lPEeWYIpMNQ4=; b=SARNdIHdj8XZpsUlYkJEErXVsO9bH9/slOsO+l/wnoEM/s2pV7HhQzql8ZLHhrrJZYxjhA /hY/7pkZLkw5AHGLroyaYF0e6dnv5ywqwPmxGYe9q02JEeFfG/tOd+oIXphcqgFpKBKf+L Ask9cqB92KIitDuigcu+V8w7jrl1TiNkTZ3aYepZc+qpl83B0VgjIAwz/fw+iysUkfFGGp KiKrBxFUhqYA9I66wGrXGjDZaOn8Wu6rHZUdHlTw+1Lx6DdemJ52LaVYSaZ3FebtalxxOk 2AO0jE1/e8UtHFkwqXG7Rg2ZUW24Rx6LC0fes6Ts8LlglDAjJJrywUlCVgaVVg== In-Reply-To: <1834170250.476362.1640382195498@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:113863 Archived-At: --===============3269338262863397974== Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Anyway, I agree that a solution via hierarchy levels would be nice.
Denis Maier via ntg-context <ntg-context@ntg.nl> hat am 24.12.2021 22:43 geschrieben:



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
--===============3269338262863397974== 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== --===============3269338262863397974==--