#let template(title:"title",part:"part",body) = [
  #set page(paper:"presentation-16-9",margin: 1cm)

  #align(center+horizon)[
    #text(rgb("#005826"),size: 1cm,title)

    #text(black,size: 0.8cm,part)
  ]


  #pagebreak()
  #set page(
    footer: 
      text(gray,size:0.4cm)[
        #part
        #h(1fr)
        #counter(page).display(
          "1/1",
          both: true,
        )
      ],
    header: link("https://xsro.github.io/print/Control-for-Integrator-Systems.pdf",text(gray,size:0.2cm)[xsro.github.io (#datetime.today().display())])
  )

  #set text(size:0.5cm)
  #set figure.caption(position: top)
  #set heading(numbering: "1.1")
  #set math.equation(
    numbering: "(1)",
    supplement: none,
  )
  #show ref: it => {
    // provide custom reference for equations
    if it.element != none and it.element.func() == math.equation {
      // optional: wrap inside link, so whole label is linked
      link(it.target)[(#it)]
    } else {
      it
    }
  }

  

  #outline(indent: 1cm)
  #bibliography("ref.bib",style: "gb-7714-2015-author-date")

  #pagebreak()

  #body

  #align(center+horizon,text(blue,size:3cm)[THANKS])
]

