diff --git a/doku/bib.bib b/doku/bib.bib new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/doku/bib.bib @@ -0,0 +1 @@ + diff --git a/doku/content.tex b/doku/content.tex new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/doku/content.tex @@ -0,0 +1 @@ + diff --git a/doku/main.tex b/doku/main.tex new file mode 100644 index 0000000..6be9016 --- /dev/null +++ b/doku/main.tex @@ -0,0 +1,37 @@ +\documentclass[a4paper, 12pt]{article} +\include{style} +%\include{glossary} +\begin{document} + +\include{titlepage} + +\newpage +\microtypesetup{protrusion=false} % disables protrusion locally in the document +\tableofcontents % prints Table of Contents +\microtypesetup{protrusion=true} % enables protrusion +\newpage + +\include{content} + +\newpage + \nocite{*} + \bibliographystyle{acm} + \bibliography{bib} +\include{latex} + +\microtypesetup{protrusion=false} +\listoffigures +\microtypesetup{protrusion=true} +\ +\newpage + +\microtypesetup{protrusion=false} +\listoftables +\microtypesetup{protrusion=true} +\ +\newpage + + +%\printglossaries +\end{document} + diff --git a/doku/style.tex b/doku/style.tex new file mode 100644 index 0000000..f0577e3 --- /dev/null +++ b/doku/style.tex @@ -0,0 +1,122 @@ +%Enable URL highlighting +\usepackage{hyperref} +\hypersetup{ + colorlinks=true, + linkcolor=black, + urlcolor=blue, +} +\urlstyle{same} + +%glossary +\usepackage[acronym,toc]{glossaries} +\makeglossaries +\setglossarystyle{altlistgroup} + +\usepackage{xparse} +\DeclareDocumentCommand{\newdualentry}{ O{} O{} m m m m } { + \newglossaryentry{gls-#3}{name={#5},text={#5\glsadd{#3}}, + description={#6},#1 + } + \makeglossaries + \newacronym[see={[Glossary:]{gls-#3}},#2]{#3}{#4}{#5\glsadd{gls-#3}} +} + +%page dimensions +\usepackage[a4paper,includeheadfoot, top=2.5cm, bottom=2.5cm, left=3.5cm, right=3cm]{geometry} + +%Font settings +\usepackage{tgpagella} +\usepackage[T1]{fontenc} + +%Support for German +\usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} + +%Enable Microtyping which improves justification +\usepackage{microtype} + +%header +\setlength{\headheight}{15pt} +\usepackage{fancyhdr} +\pagestyle{fancy} +\lhead{\nouppercase{\leftmark}} +\rhead{\thepage} +\cfoot{} + +%footnotes +\setlength{\skip\footins}{0.5cm} +\usepackage[bottom,hang]{footmisc} + +%European style paragraphs +\setlength{\parskip}{\baselineskip}% +\setlength{\parindent}{0pt}% + +%Make line spacing bigger +\linespread{1.3} + +%Make whitespace in tables bigger +\renewcommand\arraystretch{1.5} + +%Enable colours for tables +\usepackage[table]{xcolor} + +%Needed to rotate graphics and tables +\usepackage{rotating} + +%Support for images +\usepackage{graphicx} +\usepackage{float} + +%Material theme colours +\definecolor{red}{HTML}{F44336} +\definecolor{pink}{HTML}{E91E63} +\definecolor{purple}{HTML}{9C27B0} +%\definecolor{blue}{HTML}{2196F3} +\definecolor{brown}{HTML}{795548} +\definecolor{cyan}{HTML}{00BCD4} +\definecolor{darkgray}{HTML}{616161} +\definecolor{gray}{HTML}{9E9E9E} +\definecolor{lightgray}{HTML}{E0E0E0} +\definecolor{lime}{HTML}{CDDC39} +\definecolor{olive}{HTML}{827717} +\definecolor{orange}{HTML}{FF9800} +\definecolor{teal}{HTML}{009688} +\definecolor{yellow}{HTML}{FFEB3B} +\definecolor{green}{HTML}{388E3C} + +%Support for Code Snippets and Syntax Highlighting +\usepackage{listings} +\usepackage{color} +\usepackage{sourcecodepro} +\lstset{ + basicstyle=\ttfamily, + language=bash, + breaklines, + literate={ö}{{\"o}}1 + {ä}{{\"a}}1 + {ü}{{\"u}}1, + captionpos=b, % sets the caption-position to bottom + commentstyle=\color{green}, % comment style + escapeinside={\%*}{*)}, % if you want to add LaTeX within your code + keywordstyle=\color{blue}, % keyword style + stringstyle=\color{purple}, % string literal style + showstringspaces=false, % Removes the strange symboles where spaces are +} + +% Listing with a box around it +\usepackage[most]{tcolorbox} +\newtcblisting{sexylisting}[2][]{ + sharp corners, + fonttitle=\bfseries, + colframe=gray, + listing only, + listing options={basicstyle=\ttfamily,language=bash}, + title=\thetcbcounter #2, #1 +} + +%sort the bibliography by appearance +\usepackage[numbers,sort]{natbib} + +%Number Bibliography and include in ToC +\usepackage[nottoc]{tocbibind} + diff --git a/doku/titlepage.tex b/doku/titlepage.tex new file mode 100644 index 0000000..0e8b600 --- /dev/null +++ b/doku/titlepage.tex @@ -0,0 +1,16 @@ +\begin{titlepage} + \centering + %\includegraphics[width=0.15\textwidth]{example-image-1x1}\par\vspace{1cm} + {\scshape\LARGE IBZ-Schulen AG\par} + %\vspace{0.5cm} + {\scshape\Large Aarau\par} + \vspace{1.5cm} + {\huge\bfseries Casestudy Datenbank\par} + \vspace{2cm} + {\Large\itshape Cadaroski Ismail, Zweili Andreas, TI-AR-17F\par} + \vfill + +% Bottom of the page + {\large \today\par} +\thispagestyle{empty} +\end{titlepage}