Repository navigation
Expand file tree
/
Copy pathmain.tex
More file actions
113 lines (91 loc) · 2.85 KB
/
Copy pathmain.tex
File metadata and controls
113 lines (91 loc) · 2.85 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
% !TeX document-id = {3e9f9e68-5701-4889-85be-39f2ae5bea97}
%!TEX program = xelatex
%!BIB program = biber
%% --- Internal Template File ----------------------------------------------------------------------
%% MAIN FILE, GLUES EVERYTHING TOGETHER
%% -------------------------------------------------------------------------------------------------
\documentclass[
a4paper,
fontsize=12pt,
headinclude=on,
headings=twolinechapter,
headings=onelineappendix,
parskip=half,
bibliography=totocnumbered,
abstract=on,
toc=listof,
]{scrreprt}
%% LOAD THE PARTS:
\input{template/packages}
\input{userdata/setup}
\input{userdata/\contentFolderName/usersetup}
\input{template/style}
\input{template/elements}
\input{userdata/macros}
%% SET DOCUMENT PROPERTIES:
\title{\reporttitle}
\author{\studentname}
\date{\handoverdate}
\newcommand{\company}{\companyname{}, \companylocation}
\opt{Internship}{
\newcommand{\reporttype}{\iflanguage{english}{Internship Report}{Praxisarbeit}}
\newcommand{\keywords}{\reporttype, \dhbwDE, \company}
}
\opt{Study}{
\newcommand{\reporttype}{\iflanguage{english}{Study Report}{Studienarbeit}}
\newcommand{\keywords}{\reporttype, \dhbwDE}
}
\opt{Bachelor}{
\newcommand{\reporttype}{\iflanguage{english}{Bachelor Thesis}{Bachelorarbeit}}
\newcommand{\keywords}{\reporttype, \dhbwDE, \company}
}
\hypersetup{
pdftitle={\reporttype\ - \reporttitle\ - \studentname},
pdfauthor={\studentname},
pdfsubject={\reporttitle},
pdfkeywords={\keywords}
}
\overfullrule=1mm
%% GLUE THE PARTS TOGETHER:
\begin{document}
% title page:
\pdfbookmark[1]{Titlepage}{titlepage}
\begin{titlepage}
\input{template/titlepage}
\end{titlepage}
\pagenumbering{Roman}
\sloppy % encourages LaTeX to condone lager gaps between words for the sake of keeping the
% text inside the page-margins
\begin{absolutelynopagebreak}
% Declaration of Honesty:
\input{template/declaration}
% opt.: confidentiality clause
\ifcsname activateconfidentialityclause\endcsname
\vspace{7cm}
\input{template/confidentiality}
\fi
\end{absolutelynopagebreak}
\pagebreak
% abstracts:
\begin{absolutelynopagebreak}
\input{template/abstracts}
\end{absolutelynopagebreak}
\pagebreak
% Table of ...:
\begin{spacing}{1.1}
\setcounter{tocdepth}{2}%defines the depth below chapters
\tableofcontents
\clearpage
\input{template/indexes} \end{spacing}
% main content:
\pagenumbering{arabic}
\begin{spacing}{1.5}
\input{userdata/\contentFolderName/content/content}
\end{spacing}
% Bibliography and Appendix:
\clearpage
\pagenumbering{roman}
\appendix
\include{userdata/\contentFolderName/content/appendix}
\printbibliography
\end{document}