texの\tableofcontentsで表示させる階層の深さを変更する
\tableofcontentsの部分で以下のようにすれば設定可能。
\setcounter{tocdepth}{n} \tableofcontents
nの値によって、目次に表示される項目が以下のように設定される。
n | 表示 |
---|---|
0 | \chapterのみ |
1 | \sectionまで |
2 | \subsectionまで |
3 | \subsubsectionまで |
\tableofcontentsの部分で以下のようにすれば設定可能。
\setcounter{tocdepth}{n} \tableofcontents
nの値によって、目次に表示される項目が以下のように設定される。
n | 表示 |
---|---|
0 | \chapterのみ |
1 | \sectionまで |
2 | \subsectionまで |
3 | \subsubsectionまで |