Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added fonts/BarlowSemiCondensed-Black.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-BlackItalic.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-Bold.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-Italic.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-Light.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-LightItalic.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-Medium.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-Regular.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-SemiBold.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-SemiBoldItalic.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-Thin.ttf
Binary file not shown.
Binary file added fonts/BarlowSemiCondensed-ThinItalic.ttf
Binary file not shown.
136 changes: 136 additions & 0 deletions main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
\documentclass[type=master,foot=true,colorhead=true]{rwuthesis}
\usepackage[british]{babel}

\usepackage{color, url}
\usepackage{float}
\usepackage{pdfpages}
\usepackage{wrapfig}
\usepackage{tabularx, multirow, booktabs}
\usepackage{parcolumns}
\usepackage[nohyperlinks, printonlyused, withpage, smaller]{acronym} % list of abbreviations
\usepackage{lipsum} % random text generator with \lipsum

%-------------------------------- Coloring --------------------------------

\usepackage[pdfusetitle]{hyperref}
\hypersetup{
colorlinks = true,
breaklinks = true, % line breaking in a long hyperlink
urlcolor=black, % \url colour
linkcolor =black, % \ref colour
citecolor=rwuvioletlight % \cite colour
}

%-------------------------------- Grafik --------------------------------

\usepackage{graphicx}
\graphicspath{ {Images/} }
\usepackage{caption}
\usepackage{subcaption}

\usepackage{csquotes}
\usepackage{comment}
\usepackage[
backend=biber,
natbib=true,
sorting=nty,
style=numeric
]{biblatex}

%-------------------------------- Bibliografie --------------------------------

\DeclareFieldFormat[inproceedings,article]{title}{\textit{\MakeSentenceCase*{#1}}}

\DeclareBibliographyDriver{misc}{%
\usebibmacro{author/editor+others/translator+others}%
\setunit{\printdelim{nametitledelim}}\newblock
\printfield{year}%
\iffieldundef{year}{%
% Add "(n.d.). " if no year available
\printtext{\addspace\bibopenparen{n.d.}\bibcloseparen}
\setunit{\adddot\space}%
}{\setunit{\adddot\space}}%
\printfield{title}%
\setunit{\addspace}%
\iffieldundef{version}{%
\setunit{\space}
}{
\addspace
\printtext{(\printfield{version})
}
\setunit{\addspace}}%
\printfield{note}%
\setunit{\adddot\space}%
\usebibmacro{url+urldate}
\finentry
}
\addbibresource{source.bib}

%-------------------------------- Adjust Listings --------------------------------

\usepackage{listings}

\definecolor{CodeBg}{RGB}{232,232,232}
\definecolor{CodeGreen}{rgb}{0,0.6,0}

\lstset{
language=bash,
basicstyle=\footnotesize,
backgroundcolor=\color{CodeBg},
showstringspaces=false,
commentstyle=\color{CodeGreen},
keywordstyle=\color{blue},
captionpos=b,
escapeinside=``
}

%-------------------------------- Adjust Math --------------------------------

\usepackage{amsmath}
\usepackage{MnSymbol} % math symbol font

%-------------------------------- Custom Date --------------------------------

\usepackage[nodayofweek]{datetime} % date format in text
\newdateformat{mydate}{\twodigit{\THEDAY}{ }\shortmonthname[\THEMONTH] \THEYEAR}

%-------------------------------- Table Settings --------------------------------

% The triangle down symbols are not vertically alligned with the text. So raise the symbol manually:
\newcommand{\triadown}{\raisebox{0.25\height}{$\filledmedtriangledown$}}
% just for convenience abbreviate that command too:
\newcommand{\triaup}{$\filledmedtriangleup$}
% custom column type which additionally centers a p column
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}

%-------------------------------- Line Pitch And Escape Chars --------------------------------

\usepackage[onehalfspacing]{setspace} %singlespacing. onehalf-, double-
\newcommand{\spcstring}[1]{\lstinline|#1|}

%-------------------------------- Caption of figures/tables --------------------------------

\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}

%-------------------------------- MAIN --------------------------------

\newcommand{\batitle}{Rover to Mars: Whitepaper }

\title{\batitle}
\author{Leandro Ebner}
\authormail{leandro.ebner@rwu.de}
\fordegree{Scientific Work}
\firstreviewer{Prof. Dr. rer. nat. Markus Pfeil}
\firstreviewermail{markus.pfeil@rwu.de}
\secondreviewer{Benjamin Stähle M.Sc.}
\secondreviewermail{staehle@rwu.de}
\degreecourse{Electrical Engineering \& Information Technology}
\faculty{Electrical Engineering and Computer Science}
\date{\today}

\begin{document}
\maketitle

\end{document}
7 changes: 7 additions & 0 deletions rwubase.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\NeedsTeXFormat{LaTeX2e}[2017/01/01]
\ProvidesPackage{rwubase}[2019/08/29 RWU base style package]

\RequirePackage{rwudefs}
\RequirePackage{rwufont}

\endinput
16 changes: 16 additions & 0 deletions rwudefs.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
\NeedsTeXFormat{LaTeX2e}[2017/01/01]
\ProvidesPackage{rwudefs}[2019/08/29 RWU logo and color definitions]
\ProvidesFile{rwulogo.eps}[2019/06/25 RWU logo as Encapsulated PostScipt file]

\RequirePackage{graphicx}
\RequirePackage{xcolor}

\definecolor{rwuviolet}{RGB}{102, 56, 182}
\definecolor{rwuvioletlight}{RGB}{155, 125, 212}
\definecolor{rwucyan}{RGB}{0, 169, 206}
\definecolor{rwucyanlight}{RGB}{5, 195, 222}
\definecolor{rwucyan40}{RGB}{153, 221, 253}

\newcommand{\rwulogo}[1][width=5.12cm]{\includegraphics[#1]{rwulogo.eps}}

\endinput
38 changes: 38 additions & 0 deletions rwufont.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
\NeedsTeXFormat{LaTeX2e}[2017/01/01]
\ProvidesPackage{rwufont}[2019/08/29 RWU corporate font package]

\RequirePackage[no-math]{fontspec}

\setmainfont[ExternalLocation=Fonts/]{BarlowSemiCondensed-Regular.ttf}%
[Ligatures=TeX,
BoldFont=BarlowSemiCondensed-Bold.ttf,
ItalicFont=BarlowSemiCondensed-LightItalic.ttf,
BoldItalicFont=BarlowSemiCondensed-BoldItalic.ttf
]
\setsansfont[ExternalLocation=Fonts/]{BarlowSemiCondensed-Regular.ttf}%
[Ligatures=TeX,
BoldFont=BarlowSemiCondensed-Bold.ttf,
ItalicFont=BarlowSemiCondensed-LightItalic.ttf,
BoldItalicFont=BarlowSemiCondensed-BoldItalic.ttf
]

\providecommand*{\glqq}{\mbox{\char"201E}}
\renewcommand*{\glqq}{\mbox{\char"201E}}
\providecommand*{\grqq}{\mbox{\char"201C}}
\renewcommand*{\grqq}{\mbox{\char"201C}}
% FIXME: Disabled for now, as the font glyph for the opening single
% quotation mark has unwanted extra space after it (font bug)!
%\providecommand*{\glq}{\mbox{\char"201A}}
%\renewcommand*{\glq}{\mbox{\char"201A}}
%\providecommand*{\grq}{\mbox{\char"2018}}
%\renewcommand*{\grq}{\mbox{\char"2018}}
\providecommand*{\flqq}{\mbox{\char"00BB}}
\renewcommand*{\flqq}{\mbox{\char"00BB}}
\providecommand*{\frqq}{\mbox{\char"00AB}}
\renewcommand*{\frqq}{\mbox{\char"00AB}}
\providecommand*{\flq}{\mbox{\char"203A}}
\renewcommand*{\flq}{\mbox{\char"203A}}
\providecommand*{\frq}{\mbox{\char"2039}}
\renewcommand*{\frq}{\mbox{\char"2039}}

\endinput
132 changes: 132 additions & 0 deletions rwukoma.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
\NeedsTeXFormat{LaTeX2e}[2017/01/01]
\ProvidesPackage{rwukoma}[2019/07/15 RWU style KOMA script support]

\RequirePackage{kvoptions}
\RequirePackage{ifthen}
\RequirePackage{rwubase}
\RequirePackage{tocbasic}
\RequirePackage{scrlayer-scrpage}
\RequirePackage{lastpage}

\SetupKeyvalOptions{
family=rwukoma,
prefix=rwukoma@
}

\DeclareStringOption[auto]{head}
\DeclareStringOption[auto]{foot}
\DeclareBoolOption{colorhead}

\ProcessKeyvalOptions*

\ifdefined\KOMAClassName
\ifthenelse{
\equal{\KOMAClassName}{scrartcl} \OR
\equal{\KOMAClassName}{scrreprt} \OR
\equal{\KOMAClassName}{scrbook}
}{
\PackageInfo{rwukoma}{Setting up for KOMA script class \KOMAClassName}%
}{
\PackageError{rwukoma}{Unsupported document class}
{Only scrartcl, scrreprt and scrbook are supported}%
}
\else
\PackageError{rwukoma}{This package only works with KOMA script document classes}
{Use scrartcl, scrreprt or scrbook}%
\fi

\KOMAoption{parskip}{true}

\addtokomafont{title}{\color{rwuviolet}}
\addtokomafont{subtitle}{\color{rwucyan}}

\setkomafont{pageheadfoot}{\upshape\footnotesize\color{gray}}
\setkomafont{pagenumber}{\upshape\footnotesize\color{gray}}

\DeclareTOCStyleEntry[numwidth=6mm]{default}{part}
\ifthenelse{\equal{\KOMAClassName}{scrartcl}}{%
\DeclareTOCStyleEntry[numwidth=6mm]{default}{section}%
\DeclareTOCStyleEntry[indent=6mm,numwidth=9mm]{default}{subsection}%
\DeclareTOCStyleEntry[indent=15mm,numwidth=11.5mm]{default}{subsubsection}%
}{%
\DeclareTOCStyleEntry[numwidth=6mm]{default}{chapter}%
\DeclareTOCStyleEntry[indent=6mm,numwidth=8mm]{default}{section}%
\DeclareTOCStyleEntry[indent=14mm,numwidth=10mm]{default}{subsection}%
\DeclareTOCStyleEntry[indent=24mm,numwidth=12mm]{default}{subsubsection}%
}

\newboolean{rwukoma@dohead}
\ifthenelse{
\equal{\rwukoma@head}{true} \OR \(
\equal{\rwukoma@head}{auto} \AND \(
\equal{\KOMAClassName}{scrartcl} \OR
\equal{\KOMAClassName}{scrlttr2}
\)
\)
}{\setboolean{rwukoma@dohead}{true}}{\setboolean{rwukoma@dohead}{false}}

\newcommand{\rwukoma@setuphead}{
\if@twoside%
\lohead*{}
\cohead*{}
\rohead*{\rwulogo}
\lehead*{\rwulogo}
\cehead*{}
\rehead*{}
\else%
\lohead*{}
\cohead*{}
\rohead*{\rwulogo}
\fi%
\setlength{\headheight}{52pt}
\pagestyle{scrheadings}
}

\ifrwukoma@dohead%
\rwukoma@setuphead
\fi

\newboolean{rwukoma@dofoot}
\ifthenelse{
\equal{\rwukoma@foot}{true} \OR \(
\equal{\rwukoma@foot}{auto} \AND \(
\equal{\KOMAClassName}{scrartcl} \OR
\equal{\KOMAClassName}{scrlttr2}
\)
\)
}{\setboolean{rwukoma@dofoot}{true}}{\setboolean{rwukoma@dofoot}{false}}

\newcommand{\rwukoma@setupfoot}{
\if@twoside%
\lofoot*{}
\cofoot*{}
\rofoot*{\thepage{}~|~\pageref*{LastPage}}
\lefoot*{\thepage{}~|~\pageref*{LastPage}}
\cefoot*{}
\refoot*{}
\else%
\lofoot*{\thepage{}~|~\pageref*{LastPage}}
\cofoot*{}
\rofoot*{}
\fi%
\pagestyle{scrheadings}
}

\ifrwukoma@dofoot%
\rwukoma@setupfoot
\fi

\ifrwukoma@colorhead%
\addtokomafont{partnumber}{\color{rwuviolet}}
\addtokomafont{part}{\color{rwuviolet}}
\ifthenelse{\equal{\KOMAClassName}{scrartcl}}{}{\addtokomafont{chapter}{\color{rwuviolet}}}
\addtokomafont{section}{\color{rwuviolet}}
\addtokomafont{subsection}{\color{rwuviolet}}
\addtokomafont{subsubsection}{\color{rwuviolet}}
\fi

\DeclareSectionCommand[afterskip=1sp]{section}
\DeclareSectionCommand[afterskip=1sp]{subsection}
\DeclareSectionCommand[afterskip=1sp]{subsubsection}

\endinput
Loading