% vim: set filetype:tex

% Identification %
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ngsummary}[2021/12/21 NG summary class]

% Handle options %
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions\relax

% More declarations %
\LoadClass[sfdefaults=false, parskip=half]{scrreprt}
\RequirePackage{scrlayer-scrpage}

\RequirePackage{ngutils}

% define fonts
\RequirePackage{fontspec}
\RequirePackage[math-style=upright]{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setsansfont{TeX Gyre Heros}
\setmonofont{TeX Gyre Cursor}
\setmathfont{Euler Math}

\setlength{\marginparwidth}{1.5\marginparwidth}
\setlength{\fboxrule}{\heavyrulewidth}

% Use sansfont for all title elements
\addtokomafont{titlehead}{\sffamily}
\addtokomafont{subject}{\sffamily}
\addtokomafont{title}{\sffamily}
\addtokomafont{subtitle}{\sffamily}
\addtokomafont{author}{\sffamily}
\addtokomafont{date}{\sffamily}
\addtokomafont{publishers}{\sffamily}

\DeclareNewTOC
[
	type=algorithm,
	types=algorithms,
	float,
	floattype=4,
	name=Algorithmus,
	listname={Algorithmenverzeichnis}
]
{loa}

\newtheorem{theorem}{Satz}[chapter]
\newtheorem{lemma}[theorem]{Lemming}
\newtheorem{corollary}[theorem]{Korall}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{property}[theorem]{Eigenschaft}
\newtheorem{example}[theorem]{Beispiel}
\newtheorem{proof}{Beweis}
