-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
154 lines (128 loc) · 4.01 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
\documentclass[12pt, a4paper]{article}
\usepackage[hcentering,margin = 2cm,bottom = 3cm]{geometry}
\usepackage{setspace}
%\onehalfspacing
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{graphicx}
\usepackage[colorlinks=true,urlcolor=blue,linkcolor=black,citecolor=gray]{hyperref}
\usepackage{bookmark}
\usepackage{comment} % makes life easier
\usepackage{xcolor} % horizontal grey bars
\usepackage{soul}
\usepackage{enumitem}
\usepackage{tcolorbox}
\usepackage{caption}
\usepackage{eurosym}
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage{pdfpages} % import PDF for Anhang
\usepackage[xcolor,leftbars]{changebar} % blockquotes
%\usepackage{harvard}
%\usepackage[style=authoryear-ibid,backend=biber, maxcitenames=1]{biblatex}
%\addbibresource{./Bibliothek.bib} % note the .bib is required
\usepackage[
backend=biber,
style=apa, % Use APA style
citestyle=apa, % Use APA citestyle
date=year, % Display only the year
maxnames=2, % Display up to 2 author names before using et al.
minnames=1, % Use at least 1 name
maxbibnames=20, % Display up to 20 author names in the bibliography
uniquelist=false, % Disable uniquelist
isbn=false, % Do not display ISBN
doi=true, % Display DOI
eprint=false, % Do not display eprint
url=true, % Display URLs
pagetracker=true, % Enable page tracking
backref=true, % Display backreferences
backrefstyle=three+ % Combine backreferences
]{biblatex}
% Distance between bibliographical references
\setlength{\bibitemsep}{.5em}
% Indentation after the first line
\setlength{\bibhang}{2em}
% URL in the bibliography is in angle brackets
\DeclareFieldFormat{url}{<\url{#1}>}
% Break too long URLs
\setcounter{biburllcpenalty}{7000}
\setcounter{biburlucpenalty}{8000}
% Source of the bibliography file
\addbibresource{Bibliothek.bib}
% Replace "u.a." with "et al."
\DefineBibliographyStrings{german}{%
andothers = {et\addabbrvspace al\adddot},
}
%%% blockquotes
\cbcolor{red}
\newenvironment{answer}%
{\begin{quote}%
\begin{changebar}\cbcolor{gray}\color{black}}%
{\end{changebar}%
\end{quote}}
%%% cite u.a. --> et al.
\DefineBibliographyStrings{german}{%
andothers = {et\addabbrvspace al\adddot}, % replace "u.a." with "et al."
}
\usepackage{listings}
\usepackage{multicol}
\definecolor{dkgreen}{rgb}{0.4,0.6,0.2}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.5,0,0.6}
\lstset{frame=none,
language=R,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=none,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=3
}
%%% for colored table
\usepackage{colortbl}
\definecolor{LightBlue}{RGB}{173,216,230}
\definecolor{LightGreen}{RGB}{144,238,144}
\definecolor{LightPurple}{RGB}{231,154,255}
\definecolor{LightOrange}{RGB}{255,200,150}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{center}
{{\Large \textbf{Title}}\\ \textit{Subtitle}}\\
\vspace{0.4cm}
\normalsize
\underline{\textbf{Name}} \\
\vspace{0.1cm}
\today\\
\medskip
\small{foo}\\
\medskip\vspace{0,5cm}
\begin{tabular}{c c}
\textit{h1} & \textit{h2} \\
foo & fooo \\
foo line 2 & \\
\end{tabular}
\medskip
\normalsize
\end{center}
\medskip
{\color{gray}\hrule}
\tableofcontents
\medskip
{\color{gray}\hrule}
\bigskip
\thispagestyle{empty}
\newpage
\setcounter{page}{1}
\section{Heading}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl ac aliquam tincidunt, mauris velit lacinia nunc, nec tincidunt nunc nunc id nunc. Sed euismod, nisl ac aliquam tincidunt, mauris velit lacinia nunc, nec tincidunt nunc nunc id nunc. Sed euismod, nisl ac aliquam tincidunt, mauris velit lacinia nunc, nec tincidunt nunc nunc id nunc \parencite{luhmann1984}.
\printbibliography
\end{document}