add listings and online citing
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
\usepackage{enumerate}
|
||||
\usepackage{csquotes}
|
||||
\usepackage{tabularray}
|
||||
\usepackage{listings}
|
||||
\usepackage{xcolor}
|
||||
|
||||
% Kopfzeile
|
||||
\usepackage[headsepline,manualmark]{scrlayer-scrpage}
|
||||
@@ -26,6 +28,54 @@
|
||||
% Seitenspiegel
|
||||
\usepackage[left=25mm,right=20mm,top=25mm,bottom=25mm]{geometry}
|
||||
|
||||
\definecolor{codegreen}{rgb}{0,0.6,0}
|
||||
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
|
||||
\definecolor{codepurple}{rgb}{0.58,0,0.82}
|
||||
\definecolor{codeorange}{rgb}{1,0.5,0}
|
||||
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
|
||||
|
||||
\renewcommand{\lstlistingname}{Code-Beispiel}
|
||||
|
||||
\lstdefinelanguage{TypeScript}{
|
||||
sensitive=true,
|
||||
morecomment=[l]{//},
|
||||
morecomment=[s]{/*}{*/},
|
||||
morestring=[b]",
|
||||
keywords=[1]{let, const, break, case, catch, class, const, continue, debugger, default, delete, do, else, enum, export, extends, finally, for, function, if, import, in, instanceof, new, return, super, switch, this, throw, try, typeof, var, void, while, with},
|
||||
keywordstyle=[1]\color{blue},
|
||||
keywords=[2]{true, false, null,console},
|
||||
keywordstyle=[2]\color{codepurple},
|
||||
keywords=[3]{string, number, boolean, any, void},
|
||||
keywordstyle=[3]\color{codeorange}\bfseries,
|
||||
identifierstyle=\color{black},
|
||||
commentstyle=\color{gray}\textit,
|
||||
stringstyle=\color{codegreen},
|
||||
morestring=[b]',
|
||||
morestring=[b]`,
|
||||
}
|
||||
|
||||
|
||||
\lstdefinestyle{mystyle}{
|
||||
backgroundcolor=\color{backcolour},
|
||||
commentstyle=\color{codegreen},
|
||||
keywordstyle=\color{blue},
|
||||
numberstyle=\tiny\color{codegray},
|
||||
stringstyle=\color{codepurple},
|
||||
basicstyle=\ttfamily\footnotesize,
|
||||
breakatwhitespace=false,
|
||||
breaklines=true,
|
||||
captionpos=b,
|
||||
keepspaces=true,
|
||||
numbers=left,
|
||||
numbersep=5pt,
|
||||
showspaces=false,
|
||||
showstringspaces=false,
|
||||
showtabs=false,
|
||||
tabsize=2
|
||||
}
|
||||
|
||||
\lstset{style=mystyle}
|
||||
|
||||
% Literatur
|
||||
\usepackage[backend=biber, %% Hilfsprogramm "biber" (statt "biblatex" oder "bibtex")
|
||||
style=numeric, %% Zitierstil (siehe Dokumentation, bitte mit Betreuer absprechen)
|
||||
|
||||
Reference in New Issue
Block a user