#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [a4paper]
#+LANGUAGE: de
#+OPTIONS: toc:t
#+LATEX_HEADER: \date{\today}

% emacs config might also add packages

#+LATEX_HEADER: \usepackage{a4wide}
#+LATEX_HEADER: \usepackage{mathtools}
#+LATEX_HEADER: \usepackage{amsthm}
#+LATEX_HEADER: \usepackage{amssymb}
#+LATEX_HEADER: \usepackage{amsmath}
#+LATEX_HEADER: \usepackage{amsfonts}
% #+LATEX_HEADER: \usepackage[utf8]{inputenc}
#+LATEX_HEADER: \usepackage[T1]{fontenc}
#+LATEX_HEADER: \usepackage[ngerman]{babel}
#+LATEX_HEADER: \usepackage{hyphenat}
#+LATEX_HEADER: \usepackage{tikz}
#+LATEX_HEADER: \usepackage{graphicx}
#+LATEX_HEADER: \usepackage{listings}
#+LATEX_HEADER: \usepackage{xcolor}
#+LATEX_HEADER: \usepackage{color}

#+LATEX_HEADER: \usepackage{color,soul}

#+latex_header: \usepackage{minted}
#+latex_header: \usemintedstyle{colorful}
#+latex_header: \definecolor{bg}{HTML}{FDF6E3}  % used in emacs conf

%%% define own enumeration styles
% use custom labels with `\begin{enumerate}[label=$\bullet$]`
#+LATEX_HEADER: \usepackage{enumerate}
#+LATEX_HEADER: \usepackage{enumitem}
#+LATEX_HEADER: \setlist{nosep}

%%% cleaner newline indentation
#+LATEX_HEADER: \usepackage[parfill]{parskip}

%%% break page on new section
#+LATEX_HEADER: \usepackage{titlesec}
#+LATEX_HEADER: \newcommand{\sectionbreak}{\clearpage}

%%% remove page numbers (fancyhdr provides its own)
#+LATEX_HEADER: \usepackage{nopageno}

%%% fancy headers and footers
#+LATEX_HEADER: \usepackage{fancyhdr}
#+LATEX_HEADER: \pagestyle{fancy}
#+LATEX_HEADER: \fancyhf{}
#+LATEX_HEADER: \renewcommand{\headrulewidth}{1pt}
#+LATEX_HEADER: \fancyhead[L]{\rightmark}
#+LATEX_HEADER: \fancyhead[R]{\thepage}

%%% theorem-style environments
#+LATEX_HEADER: \usepackage{proof}
#+LATEX_HEADER: \usepackage[skins]{tcolorbox}

% definition
#+LATEX_HEADER: \theoremstyle{definition}
#+LATEX_HEADER: \newtheorem{definition}{Definition}[section]
#+LATEX_HEADER: \tcolorboxenvironment{definition}{blanker, before skip=10pt,after skip=10pt}

% example
#+LATEX_HEADER: \theoremstyle{definition}
#+LATEX_HEADER: \newtheorem{ex}{Beispiel}[section]
#+LATEX_HEADER: \tcolorboxenvironment{ex}{blanker, before skip=10pt,after skip=10pt}

% theorem
#+LATEX_HEADER: \newtheorem{theorem}{Satz}[section]
#+LATEX_HEADER: \tcolorboxenvironment{theorem}{blanker, before skip=10pt,after skip=10pt}

% algorithm
#+LATEX_HEADER: \theoremstyle{definition}
#+LATEX_HEADER: \newtheorem{algo}{Algorithmus}[section]
#+LATEX_HEADER: \tcolorboxenvironment{algo}{blanker, before skip=10pt,after skip=10pt}

% remark
#+LATEX_HEADER: \theoremstyle{definition}
#+LATEX_HEADER: \newtheorem*{remark}{Bemerkung}
#+LATEX_HEADER: \tcolorboxenvironment{remark}{blanker, before skip=10pt,after skip=10pt}
