% !TeX program = xelatex
% !TeX encoding = utf8
% !TeX root = ProjectPlan.tex
% vim: set ts=2 sw=2 noet:

\documentclass[a4paper, twosided, 11pt]{scrartcl}

%% Language configuration
\usepackage{polyglossia}
\setdefaultlanguage{english}

%$ Specify where floatings go and make nicer looking tables
\usepackage{float}
\usepackage{array}
\usepackage{booktabs}
\usepackage{tabularx}

%% graphics
\usepackage{graphicx}

%% Set up font
\usepackage[T1]{fontenc}
\usepackage[usefilenames, DefaultFeatures={Ligatures=Common}]{plex-otf}
\renewcommand*\familydefault{\sfdefault}

%% Header and Footers
\usepackage[automark]{scrlayer-scrpage}
\ihead{Project Plan}
\chead{}
\ohead{\headmark}

\ifoot{}
\cfoot{}
\ofoot{\pagemark}

%% Access metadata
\usepackage{titling}

%% gantt configuration
\usepackage{pgfgantt}

%% Landscape pages
\usepackage{pdflscape}

% Metadata
\title{Project Plan}
\author{Naoki Pross, Sara Cinzia Halter}


% Document
\begin{document}
\begin{titlepage}
	\includegraphics[height=3cm]{fig/ost-logo}
	\begin{flushright}
		% TODO: OST logo
		\vspace{5cm}
		{\Huge \bfseries \thetitle} \\
		\vspace{5mm}
		{\LARGE Project: \textit{Fading illustration with SDR}} \\
		\vspace{5mm}
		{\LARGE \bfseries Version 0.1}
	\end{flushright}
\end{titlepage}

\section*{Changelog}
\begin{tabularx}{\textwidth}{lrlX}
	\toprule
	\bfseries Date & \bfseries Version & \bfseries Author & \bfseries Description \\
	\midrule
	2021-09-21 & 0.1 & Pross N.  & Crated empty document \\
	\bottomrule
\end{tabularx}

\vfill
{
	\renewcommand{\arraystretch}{2}
	\begin{tabularx}{\textwidth}{lp{.2\textwidth}X}
		                   & \bfseries Date & \bfseries Signature\\
		Halter Cinzia Sara & \hrulefill & \hrulefill \\
		Pross Naoki        & \hrulefill & \hrulefill \\
	\end{tabularx}
}

\clearpage
\tableofcontents
\listoffigures
\listoftables
\clearpage

\section{Introduction}

\section{Project Schedule}

\begin{landscape}
	\begin{figure}[h] \centering
		\begin{ganttchart}{1}{12}
			\gantttitle{2011}{12} \\
			\gantttitlelist{1,...,12}{1} \\
			\ganttgroup{Group 1}{1}{7} \\
			\ganttbar{Task 1}{1}{2} \\
			\ganttlinkedbar{Task 2}{3}{7} \ganttnewline
			\ganttmilestone{Milestone}{7} \ganttnewline
			\ganttbar{Final Task}{8}{12}
			\ganttlink{elem2}{elem3}
			\ganttlink{elem3}{elem4}
		\end{ganttchart}
	\end{figure}
\end{landscape}
\end{document}
