2.7 Sections & Breaks

  • # Section Header will start a new section. The space after the # is important.

  • ## Subsection Header for subsections, ### subsubsection and so on.

  • ## unnumbered subsection {-} add {-} for unnumbered headings

  • Control how many sections in the table of contents (if you want a TOC) in the yaml header:

    output:
    word_document:
      toc: yes
      toc_depth: 3

Pagebreaks (in Word/PDF) can be created with the \newpage command.

Horizontal lines can be created with three hyphens (---) on a separate line.