summaryrefslogtreecommitdiff
path: root/template.tex
blob: d75d7724b8a47805944ad4fc0626a8b6c7abe7f5 (plain)
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
% !TEX TS-program = xelatex
\documentclass[12pt]{article}

% Language english, ngerman, ...
\usepackage[english]{babel}

% Font
\usepackage{fontspec}
\setmainfont{Times New Roman}

% Citations
\usepackage[
  backend=bibtex,
  style=authoryear	%your citation style goes here
]{biblatex}
\addbibresource{/home/marcel/Documents/Uni/references.bib}	%your .bib file
% for short citations, like Wittgenstein or Aristoteles
\DeclareCiteCommand{\shortcite}[\mkbibparens]
  {\usebibmacro{prenote}}
  {\printfield{shorttitle}}      % nur shorttitle
  {\multicitedelim}
  {\addspace\printfield{postnote}}
\DeclareFieldFormat{postnote}{#1} %entfernt p. vor Seitenzahl

% Page Layout, like Word
\usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2cm]{geometry}

% line-spacing 1.5, like Word
\usepackage{setspace}
\setstretch{1.5}

% Space between paragraphs
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.1\baselineskip}

% Headline Styling
\usepackage{titlesec}
\titleformat{\section}
  {\normalfont\Large\bfseries}{\thesection.}{1em}{}
\titleformat{\subsection}
  {\normalfont\large\bfseries}{\thesubsection.}{1em}{}
\titleformat{\subsubsection}
  {\normalfont\normalsize\bfseries}{\thesubsubsection.}{1em}{}

% Table of Contents Styling
\usepackage{fancyhdr}
\usepackage{afterpage}
\usepackage{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsubsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsubsubsecleader}{\cftdotfill{\cftdotsep}}

\pagenumbering{gobble}

\begin{document}

% Title Page (page 1)
\begin{titlepage}
  \centering
  \vspace*{5cm}

  {\Large Seminar Paper \par}
  {\Huge\bfseries Title \par}
  \vspace{2cm}

  {\Large LV-Titel \par}
  {\Large Prof  \par}
  {\Large Semester \par}

  \vfill

  {\Large Your Name \par}
  {\Large Matriculation Number: XXXXXX \par}
\end{titlepage}

% Table of Contents
\tableofcontents
\clearpage

% Page numbering starts here
\pagenumbering{arabic}
\setcounter{page}{1}

% Here starts the actual paper
% normal quote:  \parencite[Seite(n)]{bibtexeintrag}
% shortform, for example: Wittgenstein: \shortcite[10]{identifier}
\section{Introduction}

\clearpage


\section{Heading}

\subsection{Sub-Heading}

\clearpage


% Literaturverzeichnis
\printbibliography[heading=bibintoc]
\end{document}