From: jbf <roma83537@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter
Date: Mon, 4 Sep 2023 16:34:24 +1000 [thread overview]
Message-ID: <1bdc6df5-84e0-b4cf-3d83-e85ba817a683@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1248 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3838 bytes --]
[-- Attachment #2: Type: text/plain, Size: 495 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2023-09-04 6:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-04 6:34 jbf [this message]
2023-09-04 6:48 ` [NTG-context] " Wolfgang Schuster
2023-09-04 22:43 ` Max Chernoff
2023-09-04 22:50 ` jbf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1bdc6df5-84e0-b4cf-3d83-e85ba817a683@gmail.com \
--to=roma83537@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).