#import "globals.typ": *

#import "@preview/arkheion:0.1.0": arkheion, arkheion-appendices

#show: arkheion.with(
  title: title,
  authors: (
    (name: "Christoph J. Scherr", email: "contact@cscherr.de", affiliation: "NewTec GmbH"),
  ),
  // Insert your abstract after the colon, wrapped in brackets.
  // Example: `abstract: [This is my abstract...]`
  abstract: abstract,
  keywords: ("Undergrad", "Analysis", "Mathmatics"),
  date: datetime.today().display(),
)

#set text(lang: "de")

// Justified paragraphs
#set par(
  justify: true,
  leading: 0.52em,
)

// more space between pars
#show par: set block(spacing: 2em)

// Put this here to avoid affecting the title
#show link: underline


// headcolor
#let headcolor = rgb("80b3ff")

// reset counter at each chapter
#show heading.where(level:1): it => {
  counter(math.equation).update(0)
  counter(figure).update(0)
  it
}

// count with symbols
// 
// > The * character means that symbols should be used to count, in the
// > order of *, †, ‡, §, ¶, and ‖. If there are more than six items,
// > the number is represented using multiple symbols.
//
// See <https://typst.app/docs/reference/model/numbering/>
#set footnote(numbering: "*")

#set math.equation(numbering: n => {
  let h1 = counter(heading.where(level: 1)).get().first()
  // let h2 = counter(heading.where(level: 2)).get().first()
  numbering("(1.1.1)", h1, n)
})

#set figure(numbering: n => {
  let h1 = counter(heading).get().first()
  numbering("(1.1)", h1, n)
})

// Preabmle
///////////////////////////////////////////////////////////////////////////////////////////////////

#v(8em)

#outline(depth: 3)
#outline(title: "Abbildungen", target: figure)

#pagebreak()

// Content
///////////////////////////////////////////////////////////////////////////////////////////////////

= Einführung
Ich bin dieses Semester durch die verdammte Prüfung durchgefallen (fuck),
also muss ich mir jetzt Zeit nehmen und üben und die Sache ernster nehmen. Ich
brauchte einfach mehr Zeit. Dieses Dokument wird meine Notizen und Lösungen
zu allen Vorlesungen und Übungen enthalten.

Dieses Dokument bezieht sich vor allem auf Vorlesung#cite(<Vorlesung>) und Übungen#cite(<Exercise>).
Diese sind auf Englisch.


= Methoden

Erstmal machen und gucken dann.

#pagebreak()
= Vorlesungen

#include "./vorlesungen/index.typ"

#pagebreak()
= Übungen

#include "./exercise/index.typ"


// Postabmle
///////////////////////////////////////////////////////////////////////////////////////////////////
#pagebreak()

#bibliography("refs.bib")

