This type of table of contents, named hierarchical, is obtained by configuring the outline numbering: