Table of Contents empty for unknown reason
I need to display a table of contents, but only displaying chapters. Here is my minimum working example: \starttext \startfrontmatter \startchapter[title={Contents}] \placelist[chapter] \stopchapter \completecontent \stopfrontmatter \startbodymatter \startchapter[title={Title 1}] \input knuth \stopchapter \stopbodymatter \stoptext For reasons I don't understand, both \placelist[chapter] and \completecontent display the title, but are otherwise empty of contents. I believe the code was working before an update. I used ConTeXt live though and confirmed this code even doesn't work there. Why isn't it rendering the table of contents? --Joel
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
participants (2)
-
Aditya Mahajan
-
Joel