From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113860 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:29:54 +0100 (CET) Message-ID: <852772263.476301.1640381394514@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> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4719886348075997910==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40367"; 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:30:26 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 1n0s8v-000AJW-PF for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 22:30:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 06622280F9C; Fri, 24 Dec 2021 22:30:04 +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 WWwV_a5gpYbS; Fri, 24 Dec 2021 22:30:02 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 79B82287467; Fri, 24 Dec 2021 22:30:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 01278287467 for ; Fri, 24 Dec 2021 22:30:01 +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 tC9E73Kjsmit for ; Fri, 24 Dec 2021 22:30:00 +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 10BB7280F9C for ; Fri, 24 Dec 2021 22:29:59 +0100 (CET) Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [80.241.60.233]) (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 4JLKw746X6zQkjM; Fri, 24 Dec 2021 22:29:59 +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=1640381396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jfdJLdgno9IYERXSwY065N9LzYgr1XXc6waA/XP/ElQ=; b=hTc8zUs9187QbaRiiqxJ8If/WiWujObt5u6FgePjG76XDW4umcWHWjcRpyfbr+LhvpbI4i h8LAAzy7HTb2Skf2wxjZmMqKJkZHbCQ50WOB0jJPKMo3u32NnUdshDFS7W1GtmB4uHReHk xaINl3OnSUSyD6yPtd8/1IfLnteBNp/DK9LRLcxLTrpRNyrtqLf10VkNiUZSza5uqU4blL FIdDqbbPHvl+IPLO6QEfDhIOvm807ai3LZMT9M+6cOyShk5NMQXFtJwpPUwZqW5+TOxNmc ZK5HAwQC37MchAtyUe4doaAuKKVbsPI/cDn0JyjjLHUW8TJWfaUFRSvvBjXbSw== In-Reply-To: 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:113860 Archived-At: --===============4719886348075997910== 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 22:22 geschrieben:


On 12/24/21 1:20 PM, Denis Maier via ntg-context wrote:

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


That isn't going to work. The interface needs to be the same as for the
other exporters for TOC control. I need to support "toc:2".
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.
Jason
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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