159 lines
4.0 KiB
TeX
159 lines
4.0 KiB
TeX
%Copyright: 2020, Johannes Theiner <kontakt@joethei.de>
|
|
\ProvidesPackage{hs-el-text}
|
|
|
|
\RequirePackage{graphicx}
|
|
\RequirePackage[ngerman]{babel}
|
|
\RequirePackage[iso]{isodate}
|
|
\RequirePackage{amsmath}
|
|
\RequirePackage{amssymb}
|
|
\RequirePackage{amstext}
|
|
\RequirePackage{float}
|
|
\RequirePackage{caption}
|
|
\RequirePackage{url}
|
|
\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}
|
|
\RequirePackage{xargs}% Use more than one optional parameter in a new commands
|
|
\RequirePackage[dvipsnames]{xcolor}% Coloured text etc.
|
|
\RequirePackage{minted}
|
|
\RequirePackage{csquotes}
|
|
\RequirePackage[nolist, footnote]{acronym}
|
|
\RequirePackage{enumitem}
|
|
\RequirePackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}
|
|
\RequirePackage{titlesec}
|
|
\RequirePackage{tikz}
|
|
\RequirePackage[bottom=5em]{geometry}
|
|
\RequirePackage{svg}
|
|
\RequirePackage{lastpage}
|
|
\RequirePackage{lmodern}
|
|
\RequirePackage{textcomp}
|
|
\RequirePackage{makecell}
|
|
\RequirePackage{plantuml}
|
|
\RequirePackage{fontspec}
|
|
|
|
\usetikzlibrary{positioning, shapes.geometric}
|
|
|
|
\RequirePackage[final]{draftwatermark}
|
|
|
|
%watermark
|
|
\SetWatermarkText{Preview}
|
|
\SetWatermarkColor{gray}
|
|
\SetWatermarkFontSize{35.83pt}
|
|
|
|
\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]
|
|
|
|
\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}{\\ & & }
|
|
|
|
\graphicspath{{include/}}
|
|
|
|
\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}}
|
|
|
|
\title{\modul \\ \thema}
|
|
|
|
%Header
|
|
\lohead{\modul \\ \thema}
|
|
\rohead{\includegraphics[scale=0.4]{hsel-logo.png}}
|
|
\chead{}
|
|
|
|
\ifoot{}
|
|
\cfoot{}
|
|
\ofoot{Seite \thepage \hspace{1pt} von \pageref{LastPage}}
|
|
|
|
\makeindex
|
|
\isodate
|
|
|
|
|
|
\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}
|
|
\includegraphics[scale=1.0]{hsel-logo}
|
|
\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}
|
|
}
|
|
|
|
\endinput |