% !TeX program = xelatex
% !TeX encoding = utf8
% !TeX root = DigDes.tex

%% TODO: publish to CTAN
\documentclass[margin=small]{tex/hsrzf}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages

%% TODO: publish to CTAN
\usepackage{tex/hsrstud}
\usepackage{tex/docmacros}

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

%% Pretty drawings
\usepackage{tikz}

\usetikzlibrary{calc}
\usetikzlibrary{positioning}

\usetikzlibrary{external}
\tikzexternalize[
  mode = graphics if exists,
  figure list = true,
  prefix=build/
]

%% Tweak lists
\usepackage{enumitem}
\setitemize{noitemsep}

%% Nice tables
\usepackage{array}
\usepackage{tabularx}
\usepackage{booktabs}

%% License configuration
\usepackage[
    type={CC},
    modifier={by-nc-sa},
    version={4.0},
    % lang={german},
]{doclicense}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Metadata

\course{Elektrotechnik}
\module{DigDes}
\semester{Spring Semester 2021}

\authoremail{naoki.pross@ost.ch}
\author{\textsl{Naoki Pross} -- \texttt{\theauthoremail}}

\title{\texttt{\themodule}: Digital Design}
\date{\thesemester}

\setlength{\droptitle}{-1.3cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Document

\begin{document}

\pagenumbering{roman}
\maketitle

\begin{abstract}
  This document is ``open source'', you can find the \LaTeX{} sources at
  \url{https://github.com/NaoPross/DigDes}. All diagrams were made with TikZ.
  The content is based on the material of Prof. Dr. Zbinden, from the course
  \emph{Digital Design} at the University of Applied Sciences Eastern
  Switzerland (OST). If you find typos or errors you can open an PR on Github
  or mail me at \href{mailto:\theauthoremail}{\texttt{\theauthoremail}} if I'm still
  around (until spring 2022) or \href{mailto:np@0hm.ch}{\texttt{np@0hm.ch}}.
\end{abstract}

\tableofcontents

\section*{License}
\doclicenseThis{}

% \newpage
\twocolumn

\setcounter{page}{1}
\pagenumbering{arabic}

\input{tex/model-hardware}
\input{tex/vhdl}
\input{tex/statemachines}
\input{tex/testbench}
\input{tex/samples}

\end{document}
% vim:ts=2 sw=2 et:
