Introduction

Full table of contents:

  1. Section 1
  2. Section 2
    1. Section 2.1
    2. Section 2.2
      1. Section 2.2.1
  3. Section 3

Table of contents to level 0 (should be empty):

Table of contents to level 1 (only top-level sections):

  1. Section 1
  2. Section 2
  3. Section 3

Table of contents to level 2:

  1. Section 1
  2. Section 2
    1. Section 2.1
    2. Section 2.2
  3. Section 3

Table of contents to level 3 (should be equivalent to full toc):

  1. Section 1
  2. Section 2
    1. Section 2.1
    2. Section 2.2
      1. Section 2.2.1
  3. Section 3

Section 1

Section 2

Section 2.1

Section 2.2

Section 2.2.1

Section 3