ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
To: Joel via ntg-context <ntg-context@ntg.nl>
Cc: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Table of Contents empty for unknown reason
Date: Tue, 14 Jun 2022 01:34:29 -0400 (EDT)	[thread overview]
Message-ID: <nycvar.YAK.7.78.908.2206140133360.688521@nqv-guvaxcnq> (raw)
In-Reply-To: <1696247568.1513436.1655052314618@mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

On Sun, 12 Jun 2022, Joel via ntg-context wrote:

> I need to display a table of contents, but only displaying chapters.
> 
> Here is my minimum working example:

You need to add "criterium=all" to both placelist and completecontent. See below:

> \starttext
>     \startfrontmatter
>         \startchapter[title={Contents}]
>             \placelist[chapter][criterium=all]
>         \stopchapter
>         \completecontent[criterium=all]
>     \stopfrontmatter
>     \startbodymatter
>     \startchapter[title={Title 1}]
>                 \input knuth
>         \stopchapter
>         \stopbodymatter
> 
> \stoptext

Aditya

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2022-06-14  5:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1696247568.1513436.1655052314618.ref@mail.yahoo.com>
2022-06-12 16:45 ` Joel via ntg-context
2022-06-14  5:34   ` Aditya Mahajan via ntg-context [this message]

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=nycvar.YAK.7.78.908.2206140133360.688521@nqv-guvaxcnq \
    --to=ntg-context@ntg.nl \
    --cc=adityam@umich.edu \
    /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).