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 6138 invoked from network); 4 Sep 2023 06:49:25 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 4 Sep 2023 06:49:25 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 596F5482F75 for ; Mon, 4 Sep 2023 08:49:04 +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 ovv0B7CGVrjv for ; Mon, 4 Sep 2023 08:49:03 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0F146482E2E for ; Mon, 4 Sep 2023 08:48:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3A83C482585 for ; Mon, 4 Sep 2023 08:48:16 +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 pijZQv6OhkKo for ; Mon, 4 Sep 2023 08:48:15 +0200 (CEST) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 D5246482584 for ; Mon, 4 Sep 2023 08:48:15 +0200 (CEST) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-99bf1f632b8so167022966b.1 for ; Sun, 03 Sep 2023 23:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693810095; x=1694414895; darn=ntg.nl; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=jFKFuWzpUUPTM00t+Q0Z2H/EQSGqVoc5FQRulOWvXxI=; b=dYZ3ccO9AabZbSKtjfjrfQ93iSWAFf/bfd3ZSbsKPyR6fR7nlN3Rw1vJa2tyfWLZIW sugvnYOSMGeYNnmLhsC1q8cyjElYG77z6w/8xok1Qh3Ye3dstq8bVPg0caddIv8K3oVb 4ZcC9X8ytnxP7RmabbCi1Ya68WYB+1wEPW4pMNYxSOZGq5EMbvktF4glsvAyIeCtf+yP O4QdsL8mG2qqtFqyIR78S5tgqTQXuwuDbq64nYmxo4LVVULiU5sGS9qYk0FLxi/HvlIm OVsDQ7Xrc6x9UWljs/FAhHqLIpNn3EwIlpph2lhC3OC4h1MyOv6BcFzqGFE7PeiaoX0v DOvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693810095; x=1694414895; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jFKFuWzpUUPTM00t+Q0Z2H/EQSGqVoc5FQRulOWvXxI=; b=NhygMk27u03Z45LjKmpimgCGORnJC4m0eJoIy1Nsy1DjaMEr6COwa97eQoY/n9ngMl //8qCjtgDkEwbdNtV/0hVfmkQyqyiM/Qb63To7+4sQDKK2j1oZ/fU3Gfg1RRwXIqh1QK eiOISXsSe5Oj7LxkDjHqYVZMO2BzOBgNdOyMmbvbyzj9ONMyZ/8pJJ8+YgqqNo0aqaCO ZvGIm8DLC93wl98rP9ZI3whMF/nCR/XYCjtVyvOxtbrQiSB4JRczYdQJPktIc6xtmmZn qavfTJqleZpWiVtT4q/tXyKL86udeBqOVqx6l/164ovvNCwpg6GwF0T1y/TT2BPY98Zc /7xA== X-Gm-Message-State: AOJu0YzgObFlItkDwlCh5vAOzH6uYkZt+d8G2A+TBixtilOHIah6X9jv zpCyMKUehwZCi6OgxHQHke0= X-Google-Smtp-Source: AGHT+IH4b4GPcNKPUG/VzxFWxgh8vJ4Jz0TzFKxqaMEcHc5JjOCWpwKWR/8qrVUblWf0ystfKvrbBg== X-Received: by 2002:a17:906:846a:b0:9a1:ddb9:6547 with SMTP id hx10-20020a170906846a00b009a1ddb96547mr6233491ejc.57.1693810095176; Sun, 03 Sep 2023 23:48:15 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:fe08::c0d2? ([2a02:810d:a8bf:fe08::c0d2]) by smtp.gmail.com with ESMTPSA id o21-20020a1709062e9500b009a13fdc139fsm5728002eji.183.2023.09.03.23.48.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Sep 2023 23:48:14 -0700 (PDT) To: mailing list for ConTeXt users , jbf References: <1bdc6df5-84e0-b4cf-3d83-e85ba817a683@gmail.com> From: Wolfgang Schuster Message-ID: Date: Mon, 4 Sep 2023 08:48:13 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <1bdc6df5-84e0-b4cf-3d83-e85ba817a683@gmail.com> Content-Language: en-US Message-ID-Hash: IMTCVDJLAHQYCCPIVOPN4W6I2TR2BH7A X-Message-ID-Hash: IMTCVDJLAHQYCCPIVOPN4W6I2TR2BH7A X-MailFrom: wolfgang.schuster.lists@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] Re: 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="===============6176524665886202150==" This is a multi-part message in MIME format. --===============6176524665886202150== Content-Type: multipart/alternative; boundary="------------B61ECC28AEE0FBC391CB5792" Content-Language: en-US This is a multi-part message in MIME format. --------------B61ECC28AEE0FBC391CB5792 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit jbf schrieb am 04.09.2023 um 08:34: > > 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. > > [...] > > 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? > Please send *working* (which include some dummy content) examples. The example below results in section entries which are listed as a paragraph, what output do you expect here. \setuplist[chapter][alternative=c] \setuplist[section][alternative=d] \starttext \completecontent \dorecurse{2}   {\chapter{Chapter #1}    \dorecurse{10}{\section{Section ##1}}} \stoptext Wolfgang --------------B61ECC28AEE0FBC391CB5792 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit jbf schrieb am 04.09.2023 um 08:34:

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.

[...]

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?


Please send *working* (which include some dummy content) examples.

The example below results in section entries which are listed as a paragraph, what output do you expect here.

\setuplist[chapter][alternative=c]
\setuplist[section][alternative=d]

\starttext

\completecontent

\dorecurse{2}
  {\chapter{Chapter #1}
   \dorecurse{10}{\section{Section ##1}}}

\stoptext

Wolfgang

--------------B61ECC28AEE0FBC391CB5792-- --===============6176524665886202150== 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 ___________________________________________________________________________________ --===============6176524665886202150==--