Support a TOC generating for a document