-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
158 lines (132 loc) · 3.59 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
155
156
157
158
\documentclass[
english,
%twoside=true,
letterpaper,
% a4paper,
%parskip=full,
12pt
]{scrartcl}
\usepackage{ifthen}
\newboolean{color}
\setboolean{color}{false} % if you like to view your creation in color with another font, set to true
%%%%%%%%%%%%%%%%%%%%%%%%%%
% Orientation
%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[
letterpaper,
left=2.54cm,
right=2.54cm,
top=2.54cm,
% headsep=0.5cm,
% footskip=1cm, %0.75cm,
bottom=2.54cm,
% showframe,
]{geometry}
\input{setup/packages}
\input{setup/mod_floatend}
\input{setup/mod_library}
\input{setup/mod_sections}
\input{setup/mod_center}
\input{setup/mod_tablerow}
\input{setup/mod_anonymize}
\input{setup/mod_other}
%%%%%%%%%%%%%%%%%%%%%%%%%%
% Settings
%%%%%%%%%%%%%%%%%%%%%%%%%%
\clubpenalty = 10000
\widowpenalty = 10000
\displaywidowpenalty = 10000
%%%%%%%%%%%%%%%%%%%%%%%%%%
% META
%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{censor}
\ifthenelse{\boolean{color}}{%
\newcommand{\logoPath}{data/campus_logo}}{%
\newcommand{\logoPath}{data/campus_logo_bk}}
\title{Example Title}
\author{\censor{censored name}}
\date{}
\newcommand{\matrikelnr}{number}
\newcommand{\degree}{Master of Science (M.Sc.)}
\newcommand{\course}{course}
\newcommand{\firstexaminer}{prof. first examiner}
\newcommand{\secondexaminer}{dr. second examiner}
\newcommand{\startdate}{1. January 2020}
\newcommand{\finishdate}{20. August 2020}
\newcommand{\university}{\includegraphics[scale=1.10]{\logoPath}}
\newcommand{\uniaddress}{street\\ place}
\newcommand{\rsquestion}{What should a good research question entail?}
\newcommand{\rsframework}{Research Framework }
\newcommand{\rsframeworks}{Research Framework's }
\newcommand{\runkeywords}{keyword1, keyword2, keyword3}
\makeatletter
\let\runtitle\@title
\let\runauthor\@author
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%
% Header and Footer
%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{lastpage} % Last Page
\usepackage[autooneside=false,automark]{scrlayer-scrpage}
\renewcommand\sectionmarkformat{} % removes numbers of header in header
\renewcommand\subsectionmarkformat{}
\clearpairofpagestyles
\ihead{\small\runtitle} % left
\ohead{\large\pagemark} % right
\ifoot{\large \runauthor}
\cfoot{\includegraphics[scale=0.6]{\logoPath}}
\ofoot{\normalsize\leftmark} % footer outside
\input{setup/mod_library} % AMJ Library modifications
\input{setup/mod_custom_commands}
\input{setup/packages_last}
\begin{document}
\onehalfspacing
\pagenumbering{Alph} %just for the title page, so backref page works
\begin{titlepage}
{\centering
{\Large\textbf{\runtitle}\par}
\vspace{0.5cm}
{\textbf{author:} \\ \runauthor \par}
{(student-nr: \matrikelnr)\par}
\vspace{0.5cm}
{\textbf{course:} \\ \degree\par \course\par}
\vspace{0.5cm}
{\university\par}
{\uniaddress} \\
\vspace{0.5cm}
{\textbf{assessor:} \firstexaminer\par}
{\textbf{co-assessor:} \secondexaminer\par}
\vspace{0.5cm}
{\textbf{startdate:} \startdate\par}
{\textbf{hand in date:} \finishdate\par}
\vspace{1cm}
{\Large \textbf{ABSTRACT}\par}
\vspace{0.25cm}
}
\input{sections/abstract}
\vfill
\textbf{Keywords} \runkeywords
\end{titlepage}
\pagenumbering{Roman}
\setcounter{page}{1}
\newpage
\pagenumbering{arabic}
\setcounter{page}{1}
\input{sections/example}
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%
% Appendix
%%%%%%%%%%%%%%%%%%%%%%%%%%
%TC:ignore
\newpage
\pagenumbering{Roman}
\defbibheading{bibliography}{\section{References}}
\printbibliography
\newpage
\ofoot{Appendix}
\appendix\setlength{\parindent}{0cm}
\clearpage
\processdelayedfloats
\clearpage
%TC:endignore
\end{document}