From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5746 invoked from network); 4 Sep 2023 06:36:24 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 4 Sep 2023 06:36:24 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E36DA482DEE for ; Mon, 4 Sep 2023 08:35:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w0VXJe6Numrv for ; Mon, 4 Sep 2023 08:35:35 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 452ED482E4C for ; Mon, 4 Sep 2023 08:34:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id F3DAF482DEE for ; Mon, 4 Sep 2023 08:34:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9lIwcmQjCk1R for ; Mon, 4 Sep 2023 08:34:31 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 9DCA9482DED for ; Mon, 4 Sep 2023 08:34:31 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-68a3cae6d94so973828b3a.0 for ; Sun, 03 Sep 2023 23:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693809270; x=1694414070; darn=ntg.nl; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=fSN4lKid4ue9w+kGqDoVS46wgNEBns1KJJ3IKIadhBI=; b=lNl3GznGwHdWJrRkTB7AwX36U6xBqf+8xhKf4Xhuy7/3KfgqTo6E73P+tqDIHlVR3b Kf4FtWVHsf/Krqka+ndRiCIlKEGmvnSEjScKCJxfTZt2/8htRJ67sLgop1R5B7075V8S VBYtUAKFklIergMoOrvUvyQR8ojTLNTOJov1neKvzFbkSG5T5hWBSuTeA8DqItCgGp6n /9t0B4EVOaMM4pLC4NH6D53zbjBPN34Mm/lnaTWc1gGRHU0adkRnjMn+cxFzSEQ3xcmQ 32MiKl1Qz+HrORsy6zCJEYMn1AN55rSGyjbKPk0wgjSfmjRGVjh/OkBZGMAjc63Er/EP 1DRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693809270; x=1694414070; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fSN4lKid4ue9w+kGqDoVS46wgNEBns1KJJ3IKIadhBI=; b=aMqm7WJRnOQcI5eR1uIP80stdOBpieGmCtf7jsK8603i7CfGQnp1jNSv86vHdHhj0d 9hIchJhov+rgYehKeQrkgiKUvU+N3wEEu2zFgHTvr5EJWM/R9Pt5BZAG3x3hqrGt0OLU vwh4yOoVLuawLevDpqXZzEZbmy2WJg3umq5KXG7KTPUfWzt5Zv0xMECLjaF4QMzJzSnL Hi8KW5NyNEw+WgjJew3Wca1vq7NDS09W93VODFscwHjz5bByGNC1+8NM3toCnHbttpF2 vHQMPni7so51Y66K8vaOliIiJFwCcWe8LiZywLTub1TzesGNF1Z6sAl6urIJwVqtZjlU Y1lQ== X-Gm-Message-State: AOJu0YyYBn0kSBZVuIAj8kUzxj4uY+nOrehmrJgSGF06jmZ/3d58+YaE Q6jgCXGhYpPhQ7Nf5AjCndUCE/OAMSkM/w== X-Google-Smtp-Source: AGHT+IFVs+2WjMfasN7RsideuQ98Tj4/ohmzdJppYpLM6KcEqSEXyXEnhfE+y7h3xOW5/DM9Cf1tLQ== X-Received: by 2002:a05:6a00:1352:b0:68b:e3fc:b833 with SMTP id k18-20020a056a00135200b0068be3fcb833mr11600839pfu.5.1693809269387; Sun, 03 Sep 2023 23:34:29 -0700 (PDT) Received: from [192.168.1.5] ([101.115.151.59]) by smtp.gmail.com with ESMTPSA id fe23-20020a056a002f1700b0068aca5175edsm6582955pfb.165.2023.09.03.23.34.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Sep 2023 23:34:28 -0700 (PDT) Message-ID: <1bdc6df5-84e0-b4cf-3d83-e85ba817a683@gmail.com> Date: Mon, 4 Sep 2023 16:34:24 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-AU To: mailing list for ConTeXt users From: jbf Message-ID-Hash: ZAUPR2MENBI3JMFW3PHVMWCNY2MO2JXQ X-Message-ID-Hash: ZAUPR2MENBI3JMFW3PHVMWCNY2MO2JXQ X-MailFrom: roma83537@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============2414220484498344866==" This is a multi-part message in MIME format. --===============2414220484498344866== Content-Type: multipart/alternative; boundary="------------jNlOrWwNyqieuBo0P0VC3IGv" Content-Language: en-AU This is a multi-part message in MIME format. --------------jNlOrWwNyqieuBo0P0VC3IGv Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter): Chapter 1 ...................................................5 Section 1   5, Section 2  6, Section 3  7, Section 4   8, Section 5   9 etc Chapter 2 ................................................10 Section 1   10, Section 2  11, Section 3  12, Section 4   13, Section 5   14 etc As I really had no idea how to do this, I found https://wiki.contextgarden.net/Horizontal_Table_of_Contents thinking it might help, but none of it compiles (for me) in LMTX. So I tried something different, e.g. \definelist[chapter] \setuplist[chapter][label=yes,distance=1.5cm,alternative=c,style=normal,before=\blank] \definelist[section] \setuplist[section] [textcommand=\setups{SecToc}] \setupcombinedlist [content]o [list={chapter,section}] \startsetups [SecToc] \startframedtext [width=\textwidth, align=middle, frame=off] \placelist [section] [ criterium=chapter, ] \stopframedtext \stopsetups While that produces a result, it is nothing like what I want above. Has anyone put together a TOC of this kind and might be able to give me a hint to follow? Julian --------------jNlOrWwNyqieuBo0P0VC3IGv Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter):

Chapter 1 ...................................................5

Section 1   5, Section 2  6, Section 3  7,

Section 4   8, Section 5   9 etc  

Chapter 2 ................................................10

Section 1   10, Section 2  11, Section 3  12,

Section 4   13, Section 5   14 etc 

As I really had no idea how to do this, I found https://wiki.contextgarden.net/Horizontal_Table_of_Contents thinking it might help, but none of it compiles (for me) in LMTX. So I tried something different, e.g.

\definelist[chapter]

\setuplist[chapter][label=yes,distance=1.5cm,alternative=c,style=normal,before=\blank]

\definelist[section]

\setuplist[section] [textcommand=\setups{SecToc}]

\setupcombinedlist

[content]o

[list={chapter,section}]


\startsetups [SecToc]

\startframedtext [width=\textwidth, align=middle, frame=off]

\placelist [section]

[

criterium=chapter,

]

\stopframedtext

\stopsetups

While that produces a result, it is nothing like what I want above. Has anyone put together a TOC of this kind and might be able to give me a hint to follow?

Julian

--------------jNlOrWwNyqieuBo0P0VC3IGv-- --===============2414220484498344866== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============2414220484498344866==--