-
Notifications
You must be signed in to change notification settings - Fork 51
/
config.tex
138 lines (102 loc) · 4.34 KB
/
config.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
% !TEX root = master.tex
% LANGUAGE SETTINGS AND FONT ENCODING
%
\usepackage[ngerman]{babel} % German language
\usepackage[utf8]{inputenc}
\usepackage[german=quotes]{csquotes} % correct quotes using \enquote{}
\usepackage[T1]{fontenc}
%\usepackage[english]{babel} % For english language
%\usepackage{csquotes} % Richtiges Setzen der Anführungszeichen mit \enquote{}
% HYPERREF
%
\usepackage[
hidelinks=true % keine roten Markierungen bei Links
]{hyperref}
% Zwei eigene Befehle zum Setzen von Autor und Titel. Ausserdem werden die PDF-Informationen richtig gesetzt.
\newcommand{\TitelDerArbeit}[1]{\def\DerTitelDerArbeit{#1}\hypersetup{pdftitle={#1}}}
\newcommand{\AutorDerArbeit}[1]{\def\DerAutorDerArbeit{#1}\hypersetup{pdfauthor={#1}}}
\newcommand{\Firma}[1]{\def\DerNameDerFirma{#1}}
\newcommand{\Kurs}[1]{\def\DieKursbezeichnung{#1}}
% Correct superscripts
\usepackage{fnpct}
% CALCULATIONS
%
\usepackage{calc} % Used for extra space below footsepline
% BIBLIOGRAPHY SETTINGS
%
% Uncomment the next three lines for author-year-style with footnotes (Chicago)
\usepackage[backend=biber, autocite=footnote, style=authoryear, dashed=false]{biblatex} %Use Author-Year-Cites with footnotes
\AdaptNoteOpt\footcite\multfootcite %will add separators if footcite is called multiple consecutive times
\AdaptNoteOpt\autocite\multautocite % will add separators if autocite is called multiple consecutive times
% Uncomment the next line for IEEE-style
% \usepackage[backend=biber, autocite=inline, style=ieee]{biblatex} % Use IEEE-Style (e.g. [1])
% Uncomment the next line for alphabetic style
% \usepackage[backend=biber, autocite=inline, style=alphabetic]{biblatex} % Use alphabetic style (e.g. [TGK12])
% Uncomment the next two lines vor Harvard-Style
%\usepackage[backend=biber, style=apa]{biblatex}
%\DeclareLanguageMapping{german}{german-apa}
\DefineBibliographyStrings{ngerman}{ %Change u.a. to et al. (german only!)
andothers = {{et\,al\adddot}},
}
%%% Uncomment the following lines to support hard URL breaks in bibliography
%\apptocmd{\UrlBreaks}{\do\f\do\m}{}{}
%\setcounter{biburllcpenalty}{9000}% Kleinbuchstaben
%\setcounter{biburlucpenalty}{9000}% Großbuchstaben
\setlength{\bibparsep}{\parskip} %add some space between biblatex entries in the bibliography
\addbibresource{bibliography.bib} %Add file bibliography.bib as biblatex resource
% FOOTNOTES
%
% Count footnotes over chapters
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
% ACRONYMS
%%%
%%% WICHTIG: Installieren Sie das neueste Acronyms-Paket!!!
%%%
\makeatletter
\usepackage[printonlyused]{acronym}
\@ifpackagelater{acronym}{2015/03/20}
{%
\renewcommand*{\aclabelfont}[1]{\textbf{\textsf{\acsfont{#1}}}}
}%
{%
}%
\makeatother
% LISTINGS
\usepackage{listings} %Format Listings properly
\renewcommand{\lstlistingname}{Quelltext}
\renewcommand{\lstlistlistingname}{Quelltextverzeichnis}
\lstset{numbers=left,
numberstyle=\tiny,
captionpos=b,
basicstyle=\ttfamily\small}
% EXTRA PACKAGES
\usepackage{lipsum} %Blindtext
\usepackage{graphicx} % use various graphics formats
\usepackage[german]{varioref} % nicer references \vref
\usepackage{caption} %better Captions
\usepackage{booktabs} %nicer Tabs
\usepackage{array}
%\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
% ALGORITHMS
\usepackage{algorithm}
\usepackage{algpseudocode}
\renewcommand{\listalgorithmname}{Algorithmenverzeichnis }
\floatname{algorithm}{Algorithmus}
% FONT SELECTION: Entweder Latin Modern oder Times / Helvetica
\usepackage{lmodern} %Latin modern font
%\usepackage{mathptmx} %Helvetica / Times New Roman fonts (2 lines)
%\usepackage[scaled=.92]{helvet} %Helvetica / Times New Roman fonts (2 lines)
% PAGE HEADER / FOOTER
% Warning: There are some redefinitions throughout the master.tex-file! DON'T CHANGE THESE REDEFINITIONS!
\RequirePackage[automark,headsepline,footsepline]{scrpage2}
\pagestyle{scrheadings}
\renewcommand*{\pnumfont}{\upshape\sffamily}
\renewcommand*{\headfont}{\upshape\sffamily}
\renewcommand*{\footfont}{\upshape\sffamily}
\renewcommand{\chaptermarkformat}{}
\RedeclareSectionCommand[beforeskip=0pt]{chapter}
\clearscrheadfoot
\ifoot[\rule{0pt}{\ht\strutbox+\dp\strutbox}DHBW Mannheim]{\rule{0pt}{\ht\strutbox+\dp\strutbox}DHBW Mannheim}
\ofoot[\rule{0pt}{\ht\strutbox+\dp\strutbox}\pagemark]{\rule{0pt}{\ht\strutbox+\dp\strutbox}\pagemark}
\ohead{\headmark}