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
15 changes: 13 additions & 2 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Latex Compiler
name: DOCS Rendering
on:
push:
branches: main
Expand All @@ -7,7 +7,7 @@ jobs:
name: Compiler
runs-on: ubuntu-latest
steps:
- name: Open DOCS Repository
- name: Checkout DOCS Repository
uses: actions/checkout@v4
- name: Compile LaTeX Source Code
uses: xu-cheng/latex-action@v3
Expand All @@ -16,3 +16,14 @@ jobs:
latexmk_use_xelatex: true
continue_on_error: false
extra_fonts: ./fonts/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Renderings
path: ./docs/
retention-days: 90
compression-level: 0
overwrite: false



Binary file removed fonts/BarlowSemiCondensed-Black.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-BlackItalic.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-Bold.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-BoldItalic.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-ExtraBold.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-ExtraBoldItalic.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-ExtraLight.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-ExtraLightItalic.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-Italic.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-Light.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-LightItalic.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-Medium.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-MediumItalic.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-Regular.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-SemiBold.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-SemiBoldItalic.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-Thin.ttf
Binary file not shown.
Binary file removed fonts/BarlowSemiCondensed-ThinItalic.ttf
Binary file not shown.
148 changes: 20 additions & 128 deletions main.tex
Original file line number Diff line number Diff line change
@@ -1,136 +1,28 @@
\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 --------------------------------

\documentclass[type=master,twoside,BCOR=1cm]{rwuthesis}
\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}
\usepackage{lipsum}

\title{Title of Thesis}
\author{Max Mustermann, B.\,Sc.}
\authormail{max.mustermann@rwu.de}
\fordegree{Master of Science in Computer Science}
\firstreviewer{Prof.~Dr.-Ing. Ida Stern}
\firstreviewermail{stern@rwu.de}
\secondreviewer{Prof.~Dr. Max Power}
\secondreviewermail{power@rwu.de}
\degreecourse{Computer Science (Master)}
\faculty{Electrical Engineering and Computer Science}
\date{\today}

\begin{document}

\maketitle
\tableofcontents

\chapter{First chapter}

\lipsum

\end{document}


14 changes: 13 additions & 1 deletion rwubase.sty
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
\NeedsTeXFormat{LaTeX2e}[2017/01/01]
\ProvidesPackage{rwubase}[2019/08/29 RWU base style package]
\ProvidesPackage{rwubase}[2019/11/26 RWU base style package]

\RequirePackage{kvoptions}
\RequirePackage{rwudefs}

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

\DeclareStringOption[barlowsc]{fontsetup}

\ProcessKeyvalOptions*

\PassOptionsToPackage{fontsetup=\rwubase@fontsetup}{rwufont}
\RequirePackage{rwufont}

\endinput
4 changes: 2 additions & 2 deletions rwudefs.sty
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\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]
\ProvidesPackage{rwudefs}[2019/11/26 RWU logo and color definitions]
\ProvidesFile{rwulogo.eps}[2019/11/26 RWU logo as Encapsulated PostScipt file]

\RequirePackage{graphicx}
\RequirePackage{xcolor}
Expand Down
52 changes: 36 additions & 16 deletions rwufont.sty
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
\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
]
\ProvidesPackage{rwufont}[2019/11/26 RWU corporate font package]

\RequirePackage{kvoptions}
\RequirePackage{ifthen}
\RequirePackage{fontspec}

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

\DeclareStringOption[barlowsc]{fontsetup}

\ProcessKeyvalOptions*

\setsansfont[Ligatures=TeX]{Barlow Semi Condensed}

\ifthenelse{\equal{\rwufont@fontsetup}{barlowsc}}{
\setmainfont[Ligatures=TeX]{Barlow Semi Condensed}
}{
\ifthenelse{\equal{\rwufont@fontsetup}{barlow}}{
\setmainfont[Ligatures=TeX]{Barlow}
}{
\ifthenelse{\equal{\rwufont@fontsetup}{basic}}{
% do not set up main font
}{
\PackageError{rwufont}{Invalid fontsetup option}{%
Please use one of the following:\MessageBreak%
\space\space fontsetup=barlowsc\MessageBreak%
\space\space fontsetup=barlow\MessageBreak%
\space\space fontsetup=basic\MessageBreak%
}
}
}
}


\providecommand*{\glqq}{\mbox{\char"201E}}
\renewcommand*{\glqq}{\mbox{\char"201E}}
Expand Down
79 changes: 67 additions & 12 deletions rwukoma.sty
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
\NeedsTeXFormat{LaTeX2e}[2017/01/01]
\ProvidesPackage{rwukoma}[2019/07/15 RWU style KOMA script support]
\ProvidesPackage{rwukoma}[2019/11/26 RWU style KOMA script support]

\RequirePackage{kvoptions}
\RequirePackage{ifthen}
\RequirePackage{rwubase}
\RequirePackage{rwudefs}
\RequirePackage{tocbasic}
\RequirePackage{scrlayer-scrpage}
\RequirePackage{lastpage}
Expand All @@ -13,6 +13,7 @@
prefix=rwukoma@
}

\DeclareStringOption[barlowsc]{fontsetup}
\DeclareStringOption[auto]{head}
\DeclareStringOption[auto]{foot}
\DeclareBoolOption{colorhead}
Expand All @@ -35,25 +36,79 @@
{Use scrartcl, scrreprt or scrbook}%
\fi

\PassOptionsToPackage{fontsetup=\rwukoma@fontsetup}{rwufont}
\RequirePackage{rwufont}

\KOMAoption{parskip}{true}

\addtokomafont{title}{\color{rwuviolet}}
\addtokomafont{author}{\usekomafont{disposition}\mdseries}
\addtokomafont{date}{\usekomafont{disposition}\mdseries}
\addtokomafont{dedication}{\usekomafont{disposition}\mdseries}
\addtokomafont{publishers}{\usekomafont{disposition}\mdseries}
\addtokomafont{subject}{\usekomafont{disposition}\mdseries}
\addtokomafont{subtitle}{\color{rwucyan}}
\addtokomafont{title}{\color{rwuviolet}}
\addtokomafont{titlehead}{\usekomafont{disposition}\mdseries}

\setkomafont{pageheadfoot}{\upshape\footnotesize\color{gray}}
\setkomafont{pagenumber}{\upshape\footnotesize\color{gray}}
\setkomafont{pageheadfoot}{\usekomafont{disposition}\mdseries\upshape\footnotesize\color{gray}}
\setkomafont{pagenumber}{\usekomafont{disposition}\mdseries\upshape\footnotesize\color{gray}}

\newcommand{\rwukoma@usedisposition}[1]{%
\begingroup%
\usekomafont{disposition}\mdseries #1%
\endgroup%
}

\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,
entryformat=\rwukoma@usedisposition,
pagenumberformat=\rwukoma@usedisposition
]{default}{section}%
\DeclareTOCStyleEntry[
indent=6mm,
numwidth=9mm,
entryformat=\rwukoma@usedisposition,
pagenumberformat=\rwukoma@usedisposition
]{default}{subsection}%
\DeclareTOCStyleEntry[
indent=15mm,
numwidth=11.5mm,
entryformat=\rwukoma@usedisposition,
pagenumberformat=\rwukoma@usedisposition
]{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}%
\DeclareTOCStyleEntry[
numwidth=6mm
]{default}{chapter}%
\DeclareTOCStyleEntry[
indent=6mm,
numwidth=8mm,
entryformat=\rwukoma@usedisposition,
pagenumberformat=\rwukoma@usedisposition
]{default}{section}%
\DeclareTOCStyleEntry[
indent=14mm,
numwidth=10mm,
entryformat=\rwukoma@usedisposition,
pagenumberformat=\rwukoma@usedisposition
]{default}{subsection}%
\DeclareTOCStyleEntry[
indent=24mm,
numwidth=12mm,
entryformat=\rwukoma@usedisposition,
pagenumberformat=\rwukoma@usedisposition
]{default}{subsubsection}%
}
\DeclareTOCStyleEntry[
entryformat=\rwukoma@usedisposition,
pagenumberformat=\rwukoma@usedisposition
]{default}{figure}
\DeclareTOCStyleEntry[
entryformat=\rwukoma@usedisposition,
pagenumberformat=\rwukoma@usedisposition
]{default}{table}

\newboolean{rwukoma@dohead}
\ifthenelse{
Expand Down
Loading