ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Max Chernoff <mseven@telus.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter
Date: Mon, 04 Sep 2023 16:43:46 -0600	[thread overview]
Message-ID: <4379a82c71c9ad272d4c380397e7fb3fbc831f72.camel@telus.net> (raw)
In-Reply-To: <1bdc6df5-84e0-b4cf-3d83-e85ba817a683@gmail.com>


Hi Julian,

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

> Has 
> anyone put together a TOC of this kind and might be able to give me a 
> hint to follow?

This is fairly close to what you're looking for I think (the manual, not
the package itself):

   http://mirrors.ctan.org/macros/luatex/generic/lua-widow-control/lua-widow-control.pdf

The source is a little messy, but I've used it in a bunch of other
documents and it seems fairly robust:

   https://github.com/gucci-on-fleek/lua-widow-control/blob/7c4544/docs/manual/lwc-manual.mkxl#L167-L234

There aren't any page numbers for the subsections in that, but you
should be able to add those inside the definition of
\SubsectionTOCcommand with either #3 or \currentlistentrypagenumber.

Thanks,
-- Max
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2023-09-04 22:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-04  6:34 [NTG-context] " jbf
2023-09-04  6:48 ` [NTG-context] " Wolfgang Schuster
2023-09-04 22:43 ` Max Chernoff [this message]
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=4379a82c71c9ad272d4c380397e7fb3fbc831f72.camel@telus.net \
    --to=mseven@telus.net \
    --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).