$generate-chapter-toc$
If true, an automatically generated chapter TOC should be included. By default, its true. Its false if the output is going to a single file and the current node isn't the root element.
(define $generate-chapter-toc$ ;; Should a Chapter Table of Contents be produced? (lambda () (or (not nochunks) (node-list=? (current-node) (sgml-root-element)))))