forked from pfisterer/DHBW_LaTeX_Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.tex
More file actions
158 lines (137 loc) · 5.09 KB
/
config.tex
File metadata and controls
158 lines (137 loc) · 5.09 KB
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
155
156
157
% !TEX root = master.tex
% HYPERREF
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ANLEITUNG:
%
% Passen Sie alle Stellen im Dokument an, die mit
% @stud markiert sind
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{makeidx} % allows index generation
\usepackage{listings} %Format Listings properly
\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}
\usepackage{chngcntr}
\usepackage[hidelinks=true]{hyperref} % keine roten Markierungen bei Links
\usepackage{fnpct} % Correct superscripts
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{calc} % Used for extra space below footsepline
\usepackage{acronym}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{setspace}
%
% @stud
%
% FONT SELECTION: Entweder 1) Latin Modern oder 2) Times / Helvetica
\usepackage{lmodern} % 1) Latin modern font
%\usepackage{mathptmx} % 2) Helvetica / Times New Roman fonts (2 lines)
%\usepackage[scaled=.92]{helvet} % 2) Helvetica / Times New Roman fonts (2 lines)
%
% @stud
%
% LANGUAGE SETTINGS
\usepackage[ngerman]{babel} % german language
\usepackage[german=quotes]{csquotes} % correct quoting using \enquote{}
%\usepackage[english]{babel} % english language
%\usepackage{csquotes} % correct quoting using \enquote{}
%
% @stud
%
% 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
%
% @stud
%
% FOOTNOTES: Count footnotes over chapters
%1 \counterwithout{footnote}{chapter}
% ACRONYMS
\makeatletter
\@ifpackagelater{acronym}{2015/03/20}
{\renewcommand*{\aclabelfont}[1]{\textbf{{\acsfont{#1}}}}}{}
\makeatother
% LISTINGS
\renewcommand{\lstlistingname}{Quelltext}
\renewcommand{\lstlistlistingname}{Quelltextverzeichnis}
\lstset{numbers=left,
numberstyle=\tiny,
captionpos=b,
basicstyle=\ttfamily\small}
% ALGORITHMS
\renewcommand{\listalgorithmname}{Algorithmenverzeichnis }
\floatname{algorithm}{Algorithmus}
% PAGE HEADER / FOOTER
% Warning: There are some redefinitions throughout the master.tex-file! DON'T CHANGE THESE REDEFINITIONS!
\RequirePackage[automark]{scrlayer-scrpage}
%alternatively with separation lines: \RequirePackage[automark,headsepline,footsepline]{scrlayer-scrpage}
%\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}
\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}}
\newcommand{\Abteilung}[1]{\def\DerNameDerAbteilung{#1}}
\newcommand{\Studiengangsleiter}[1]{\def\DerStudiengangsleiter{#1}}
\newcommand{\WissBetreuer}[1]{\def\DerWissBetreuer{#1}}
\newcommand{\FirmenBetreuer}[1]{\def\DerFirmenBetreuer{#1}}
\newcommand{\Bearbeitungszeitraum}[1]{\def\DerBearbeitungszeitraum{#1}}
\newcommand{\Abgabedatum}[1]{\def\DasAbgabedatum{#1}}
\newcommand{\Matrikelnummer}[1]{\def\DieMatrikelnummer{#1}}
\newcommand{\Studienrichtung}[1]{\def\DieStudienrichtung{#1}}
\newcommand{\ArtDerArbeit}[1]{\def\DieArtDerArbeit{#1}}
\newcommand{\Literaturverzeichnis}{Literaturverzeichnis}
\newcommand{\settingBibFootnoteCite}{
\setlength{\bibparsep}{\parskip} % Add some space between biblatex entries in the bibliography
\addbibresource{bibliography.bib} % Add file bibliography.bib as biblatex resource
\DefineBibliographyStrings{ngerman}{andothers = {{et\,al\adddot}},}
\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
}
\newcommand{\setTitlepage}{
\input{titlepage}
\pagenumbering{roman} % Römische Seitennummerierung
\normalfont
}
%
% @stud
%
\newcommand{\settingLists}{
% Inhaltsverzeichnis
\tableofcontents
% Abbildungsverzeichnis
\listoffigures
% Tabellenverzeichnis
\listoftables
% Listingsverzeichnis / Quelltextverzeichnis
\lstlistoflistings
% Algorithmenverzeichnis
\listofalgorithms
}
\newcommand{\initializeText}{
\clearpage
\ihead{\chaptername~\thechapter} % Neue Header-Definition
\pagenumbering{arabic} % Arabische Seitenzahlen
}
\newcommand{\initializeBibliography}{
\ihead{}
\printbibliography[title=\Literaturverzeichnis]
\cleardoublepage
}
\newcommand{\initializeAppendix}{
\appendix
\ihead{\appendixname~\thechapter}
}