Configuration Setting: maxtoclevel

Set this variable to the maximum number of heading levels to include in the automatically generated Table of Contents.

A value of 0 will disable the Table of Contents.

See also