#import "colour.typ": *

#let contents_page() = {
  set text(font: "TUM Neue Helvetica", lang: "de")

  // Override the heading function to not make the Contents page affected by heading numbering 0

  show heading.where(
    level: 1
  ): it => [
    #v(1em)
    #text(
    size: 24pt,
    font: "TUM Neue Helvetica",
    it.body
    )
    #v(1em, weak: true)
  ]

  show outline.entry.where(
    level: 1
  ): it => {
    v(1em)
    strong(it)
  }

  outline(indent: auto)
}
