2020-12-06 19:23:01 +01:00
|
|
|
%Copyright: 2020, Johannes Theiner <kontakt@joethei.de>
|
|
|
|
\ProvidesPackage{hs-el-text}
|
|
|
|
|
|
|
|
\RequirePackage[ngerman]{babel}
|
2020-12-07 11:49:32 +01:00
|
|
|
\RequirePackage{graphicx}
|
2020-12-06 19:33:01 +01:00
|
|
|
\RequirePackage{amsmath}
|
|
|
|
\RequirePackage{amssymb}
|
|
|
|
\RequirePackage{amstext}
|
|
|
|
\RequirePackage{float}
|
|
|
|
\RequirePackage{caption}
|
|
|
|
\RequirePackage{url}
|
2020-12-06 19:23:01 +01:00
|
|
|
\RequirePackage[automark, headsepline, footsepline, markcase=upper]{scrlayer-scrpage}
|
|
|
|
\RequirePackage[pdfusetitle,
|
|
|
|
unicode,
|
|
|
|
naturalnames,
|
|
|
|
pdfborder={0 0 0},
|
|
|
|
colorlinks,
|
|
|
|
linkcolor = black,
|
|
|
|
urlcolor = blue,
|
|
|
|
citecolor = black,
|
|
|
|
anchorcolor = black]{hyperref}
|
|
|
|
\RequirePackage{comment}
|
2020-12-06 19:33:01 +01:00
|
|
|
\RequirePackage{xargs}% Use more than one optional parameter in a new commands
|
|
|
|
\RequirePackage[dvipsnames]{xcolor}% Coloured text etc.
|
2020-12-06 19:23:01 +01:00
|
|
|
\RequirePackage{minted}
|
|
|
|
\RequirePackage{csquotes}
|
|
|
|
\RequirePackage[nolist, footnote]{acronym}
|
|
|
|
\RequirePackage{enumitem}
|
|
|
|
\RequirePackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}
|
|
|
|
\RequirePackage{tikz}
|
|
|
|
\RequirePackage[bottom=5em]{geometry}
|
|
|
|
\RequirePackage{svg}
|
|
|
|
\RequirePackage{lastpage}
|
2020-12-06 19:33:01 +01:00
|
|
|
\RequirePackage{lmodern}
|
|
|
|
\RequirePackage{textcomp}
|
2020-12-06 19:23:01 +01:00
|
|
|
\RequirePackage{makecell}
|
2020-12-06 19:33:01 +01:00
|
|
|
\RequirePackage{fontspec}
|
2020-12-07 11:49:32 +01:00
|
|
|
\RequirePackage{wrapfig}
|
|
|
|
\RequirePackage{lipsum}
|
|
|
|
\RequirePackage{subfig}
|
2020-12-18 10:09:38 +01:00
|
|
|
\RequirePackage{plantuml}
|
2020-12-06 19:23:01 +01:00
|
|
|
|
|
|
|
\usetikzlibrary{positioning, shapes.geometric}
|
|
|
|
|
2021-01-02 14:07:36 +01:00
|
|
|
\RequirePackage[final]{draftwatermark}
|
2020-12-06 19:23:01 +01:00
|
|
|
|
|
|
|
%watermark
|
|
|
|
\SetWatermarkText{Preview}
|
2020-12-07 11:49:32 +01:00
|
|
|
\SetWatermarkColor{red}
|
2020-12-06 19:23:01 +01:00
|
|
|
\SetWatermarkFontSize{35.83pt}
|
|
|
|
|
2021-01-02 14:07:36 +01:00
|
|
|
%\titlespacing\section{0pt}{12pt}{10pt}
|
|
|
|
%\titlespacing\subsection{0pt}{5pt}{5pt}
|
|
|
|
%\titlespacing\subsubsection{0pt}{5pt}{5pt}
|
|
|
|
%\titlespacing*{\paragraph}{0pt}{12pt}{5pt}[50pt]
|
|
|
|
%\titlespacing*{\subparagraph}{0pt}{12pt}{5pt}[50pt]
|
|
|
|
|
|
|
|
\RedeclareSectionCommand[beforeskip=0pt,afterindent=false]{section}
|
|
|
|
\RedeclareSectionCommand[beforeskip=0pt,afterindent=false]{subsection}
|
2020-12-06 19:23:01 +01:00
|
|
|
|
|
|
|
\setitemize{noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt}
|
|
|
|
\setlist[enumerate]{noitemsep, topsep=0pt, parsep=0pt, partopsep=0pt}
|
|
|
|
|
|
|
|
\newcommandx{\unsure}[2][1=]{\todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}}
|
|
|
|
\newcommandx{\change}[2][1=]{\todo[linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,#1]{#2}}
|
|
|
|
\newcommandx{\info}[2][1=]{\todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,#1]{#2}}
|
|
|
|
\newcommandx{\improvement}[2][1=]{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}}
|
|
|
|
%
|
|
|
|
\newenvironment{longlisting}{\captionsetup{type=listing}}{}
|
|
|
|
|
|
|
|
\renewcommand{\listingscaption}{Auflistung}
|
|
|
|
\setminted{
|
|
|
|
frame=lines,
|
|
|
|
framesep=2mm,
|
|
|
|
baselinestretch=1.2,
|
|
|
|
bgcolor=bg,
|
|
|
|
linenos,
|
|
|
|
autogobble
|
|
|
|
}
|
|
|
|
|
|
|
|
\definecolor{bg}{rgb}{0.95,0.95,0.95}
|
|
|
|
|
|
|
|
%FIXME: this is realy hacky, change it asap
|
|
|
|
%https://tex.stackexchange.com/a/391042
|
|
|
|
\newcommand{\und}{\\ & & }
|
|
|
|
|
2021-01-02 14:10:41 +01:00
|
|
|
\graphicspath{{include/}}
|
2020-12-06 19:23:01 +01:00
|
|
|
|
|
|
|
\newcommand{\link}[1]{\footnote{\url{#1}}}
|
|
|
|
|
|
|
|
%define commands for title
|
|
|
|
\newcommand*{\modul}[1]{\gdef\modul{#1}}
|
|
|
|
\newcommand*{\thema}[1]{\gdef\thema{#1}}
|
|
|
|
\newcommand*{\semester}[1]{\gdef\semester{#1}}
|
2020-12-18 10:09:38 +01:00
|
|
|
\newcommand*{\gruppe}[1]{\gdef\gruppe{#1}}
|
2020-12-06 19:23:01 +01:00
|
|
|
|
|
|
|
\title{\modul \\ \thema}
|
|
|
|
|
|
|
|
%Header
|
|
|
|
\lohead{\modul \\ \thema}
|
|
|
|
\rohead{\includegraphics[scale=0.4]{hsel-logo.png}}
|
|
|
|
\chead{}
|
|
|
|
|
2020-12-18 10:09:38 +01:00
|
|
|
\ifdefined\gruppe
|
|
|
|
\ifoot{Gruppe: \gruppe}
|
|
|
|
\else
|
2020-12-06 19:23:01 +01:00
|
|
|
\ifoot{}
|
2020-12-18 10:09:38 +01:00
|
|
|
|
|
|
|
\fi
|
|
|
|
|
2020-12-06 19:23:01 +01:00
|
|
|
\cfoot{}
|
|
|
|
\ofoot{Seite \thepage \hspace{1pt} von \pageref{LastPage}}
|
|
|
|
|
|
|
|
\makeindex
|
|
|
|
|
|
|
|
|
|
|
|
\renewcommand*{\maketitle}{%
|
|
|
|
\begin{titlepage}
|
|
|
|
\pagenumbering{Alph}
|
|
|
|
\pagestyle{empty}
|
|
|
|
\begin{center}
|
|
|
|
\begin{tabular}{p{\textwidth}}
|
|
|
|
|
|
|
|
\begin{center}
|
|
|
|
\LARGE{\textsc{\modul}}
|
|
|
|
\end{center}
|
|
|
|
|
|
|
|
\\
|
|
|
|
\begin{center}
|
|
|
|
\textbf{\LARGE{
|
|
|
|
\\
|
|
|
|
\thema
|
|
|
|
\\
|
|
|
|
}}
|
|
|
|
\end{center}
|
|
|
|
|
|
|
|
\vspace*{50pt}
|
|
|
|
|
|
|
|
\begin{center}
|
2021-01-02 14:07:36 +01:00
|
|
|
\includegraphics{hsel-logo}
|
2020-12-06 19:23:01 +01:00
|
|
|
\end{center}
|
|
|
|
|
|
|
|
\vspace*{200pt}
|
|
|
|
|
|
|
|
|
|
|
|
\begin{center}
|
|
|
|
\begin{tabular}{lll}
|
|
|
|
\textbf{Gruppenmitglieder:}
|
|
|
|
& & \@author
|
|
|
|
\\
|
|
|
|
\textbf{Semester:} & & \semester\\
|
|
|
|
\textbf{letzte Änderung:} & & \@date\\
|
|
|
|
|
|
|
|
\end{tabular}
|
|
|
|
\end{center}
|
|
|
|
|
|
|
|
\end{tabular}
|
|
|
|
\end{center}
|
|
|
|
|
|
|
|
|
|
|
|
\pagenumbering{arabic}
|
|
|
|
\pagestyle{scrheadings}
|
|
|
|
\clearpage
|
|
|
|
\setcounter{page}{1}
|
|
|
|
|
|
|
|
\end{titlepage}
|
|
|
|
}
|
|
|
|
|
2021-01-02 14:07:36 +01:00
|
|
|
\endinput
|