% silence external warnings
\RequirePackage{silence}
\WarningFilter{scrreprt}{Usage of package `titlesec'}
\WarningFilter{scrreprt}{Activating an ugly workaround}
\WarningFilter{titlesec}{Non standard sectioning command detected}
\WarningFilter{microtype}{protrusion codes list}
\WarningFilter{latexfont}{Font}
\WarningFilter{latexfont}{Some font shapes}

% \documentclass[11pt]{diazessay}
\documentclass[a4paper,
DIV=13,
12pt,
BCOR=10mm,
department=FakIM,
% lucida,
% KeepRoman,
oneside,
parskip=half,
automark,
headsepline,
% footsepline,
]{OTHRartcl}

% document language and hyphenation
\usepackage[english]{babel}
% math stuff
\usepackage{amsmath}

% UTF-8 encoding
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

% language specific quotes and general recommendations for biblatex
\usepackage{lmodern,csquotes,xpatch}

% acronyms
\usepackage{acro}
\include{acronyms}

% bibliography
\usepackage[datamodel=archived,backend=biber]{biblatex}
%{{{ archivedat and archivedon for online sources
\NewBibliographyString{archivedat,archivedon}
\DefineBibliographyStrings{english}{%
  archivedat = {archived at},
  archivedon = {on},
}
\DeclareFieldFormat{archiveurl}{\bibstring{archivedat}\space\url{#1}}
\DeclareFieldFormat{archivedate}{\bibstring{archivedon}\space#1}

\newbibmacro*{archiveurl}{\printfield{archiveurl}}
\newbibmacro*{archivedate}{\printarchivedate}
\renewbibmacro*{url+urldate}{%
  \usebibmacro{url}%
  \iffieldundef{urlyear}
    {}
    {\setunit*{\addspace}%
     \usebibmacro{urldate}}%
  \setunit{\addcomma\space}%
  \usebibmacro{archiveurl}%
  \iffieldundef{archiveyear}
    {}
    {\setunit*{\addspace}%
     \usebibmacro{archivedate}}}
%}}} archivedat and archivedon for online sources
\addbibresource{bibliography.bib}

% OTH specific commands for logos, colors
\usepackage{OTHR}

% line spacing
\usepackage[onehalfspacing]{setspace}

% hyperlinks
\usepackage[pdftex,colorlinks=false]{hyperref}

% make overfull hbox warnings prominently visible in document
\overfullrule=2cm

\pagestyle{headings}

% metadata like title, author, supervisor, ...
\include{metadata}
% custom commands
\include{commands}

\setcounter{tocdepth}{2}

\begin{document}

\maketitle

\include{abstract}

\tableofcontents

\include{content}

\cleardoublepage{}

\include{appendix}

\end{document}

% vim: set filetype=tex ts=2 sw=2 tw=0 et :
