I am working with a multi-volume document within a single PDF and with no reset page or section numbers.
As ConTeXt does not seem to have any \volume title, as it has for \part and \chapter, I just put in new title pages whenever needed. The document structure looks like this, with \titlepage being a custom macro which places the title information and displays the volume number:
\titlepage
\startbodymatter
\part{Alligators}
\chapter{Freshwater}
\section{Diet}
\section{Habitat}
\part{Fish}
\stopbodymatter
\titlepage
\startbodymatter
\part{Birds}
\part{Snakes}
\stopbodymatter
\titlepage
\startbodymatter
\part{Frogs}
\stopbodymatter
I found that if I place the table of contents in the first volume, it is too long. I need to place one table of contents within each volume, which only shows entries, such as \part, \chapter, \section, etc., for that volume and no other.
How can I place a table of contents within my \titlepage macro, such that ConText creates one table of contents appearing after each title, and each table of contents only shows the content appearing after that title page, but not after the following title page? E.g., the table of contents for the first volume appearing above would look like this:
Contents
1 Alligators
1 Freshwater
1 Diet
2 Habitat
2 Fish
Entries for "volume" do not need to appear inside these lists.
