\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tex/docstyle}[2021/10/31 v0.1 Document Style]

%% Page Margins (done with KOMA)
% \PassOptionsToPackage{geometry}{
% 	a4paper, showframe
% }
% \RequirePackage{geometry}
% \AfterCalculatingTypearea{%
% 	\geometry{%
% 			inner = 1cm, outer = 1cm, includeheadfoot
% 			top = 3cm, bottom = 3cm
% 	}
% }

%% Pager headers and footers (using KOMA)
\PassOptionsToPackage{scrlayer-scrpage}{autooneside = false}
\RequirePackage{scrlayer-scrpage}

\setkomafont{pagenumber}{\sffamily\bfseries\slshape}
\setkomafont{pageheadfoot}{\itshape}

% Add marks
\lehead{\leftmark}
\rohead{\rightmark}

%% Font configuration
% use roboto from sans serif
\RequirePackage{roboto}

%% Floating captions configuration
% set captions font
\setkomafont{captionlabel}{\sffamily\bfseries}
% set caption style
\setcapindent{0pt}
\renewcommand*{\captionformat}{\quad}

%% Bibliography style
\PassOptionsToPackage{biblatex}{%
	backend = biber,
	style = ieeee,
}
\RequirePackage{biblatex}

%% Set up links
\RequirePackage{xcolor}
\PassOptionsToPackage{hyperref}{%
	bookmarks = true,
	%% TODO: set title
	% pdftitle = {}
	pdfsubject = {Semester Thesis}
	pdfauthor = {Naoki Pross, Sara Halter}
	plainpages = false,
	psepdfpagelabels,
}
\RequirePackage{hyperref}
\hypersetup{
	% remove ugly boxes
	hidelinks,
	% set link colors
	colorlinks = true,
	anchorcolor = black,
	citecolor = black,
	filecolor = black,
	linkcolor = black,
	menucolor = black,
	runcolor = black,
	urlcolor = {black!50!blue}, 
	urlcolor = black,
}

% vim: set ts=2 sw=2 noet:
