I have a lengthy document, which must be divided into separate volumes. So that it can be compiled in one pass, the source file is organized like this:
\starttext
\startfrontmatter
% this contains the title page and table of contents
\stopfrontmatter
\startbodymatter
% this contains the text for volume 1
\stopbodymatter
\startfrontmatter
% this contains the title page and table of contents
\stopfrontmatter
\startbodymatter
% this contains the text for volume 2
\stopbodymatter
\startfrontmatter
% this contains the title page and table of contents
\stopfrontmatter
\startbodymatter
% this contains the text for volume 3
\stopbodymatter
\stoptext
ConTeXt already has definitions for parts, chapters, and sections, but I could not find any details about volumes. I have found this documentation about adding new section titles, but I do not know if this is proper usage.
First, unlike other section titles, I need the volume title to appear on the title page of each volume, but not in the body matter, e.g.:
__________________
| |
|THIS IS THE TITLE |
| |
| by Author |
| |
| |
| |
| Volume I |
|__________________|
Second, it should still appear in the table of contents like a regular section, e.g.:
Table of Contents
Volume I
Part 1 - Animals 3
Part 2 - Plants 6
Volume II
Part 3 - Rocks 9
The documentation on creating custom section titles does not seem to cover these points. Volumes seem so different from the other sections that I am not sure if it is correct to use \setuphead
to define them. What is the best way to go about adding volumes to the document?