-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackages-settings.sty
49 lines (43 loc) · 2.29 KB
/
packages-settings.sty
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
\ProvidesPackage{packages-settings}
% documentation: https://de.sharelatex.com/learn/Management_in_a_large_project#Preamble_in_a_separate_file
% -----------------------------------------------------------------------------
% packages, settings, \renewcommand and meta data
% -----------------------------------------------------------------------------
\usepackage[utf8]{inputenc} % set utf-8 input encoding
\usepackage[T1]{fontenc} % 8-bit encoding for languages with accented characters
\usepackage[ngerman,english]{babel} % to use (new) german and english language
\usepackage{lmodern} % use vector font
\usepackage[top=3cm, right=25mm, bottom=3cm, headsep=1em, footskip=12mm]{geometry}
\usepackage{hyperref} % handle cross-referencing
\usepackage{amsmath,amsfonts,amssymb} % provides mathematical features
\usepackage{setspace} % setting the spacing between lines
\usepackage[german=swiss]{csquotes} % provides advanced facilities for inline and display quotations e.g. \enquote{Text}
\usepackage{graphicx} % grafic
\usepackage[printonlyused]{acronym} % import package and print only used acronyms
\usepackage{harvard} % harvard citation style with several variant styles
\usepackage[automark,headsepline]{scrlayer-scrpage} % for header and footer
\usepackage{scrhack,listings} % package for source code listings %TODO ,filecontents for line numbers
\usepackage[usenames,dvipsnames]{color} % for syntax highlighting
\usepackage{import}
\usepackage{blindtext} % OPTINAL: for demo text purposes
\setcounter{tocdepth}{3} % toc depth level - list subsubsection
\setcounter{secnumdepth}{3} % toc depth level - number subsubsection
\setlength\parindent{0pt} % 0/no auto paragraph indent
\graphicspath{ {images/}{screenshots/} } % grafic - set basic directories
\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.gif,.tif,.tiff} % grafic - default file extensions
% header and footer settings
\clearpairofpagestyles
\cfoot[\pagemark]{\pagemark}
\pagestyle{scrheadings}
% color source code listings
\lstset{ %TODO language=Java,
breaklines=true
,captionpos=b
,numbers=left
,basicstyle=\ttfamily\scriptsize
,keywordstyle=\color{blue}\ttfamily
,stringstyle=\color{red}\ttfamily
,commentstyle=\color{ForestGreen}\ttfamily
,morecomment=[l][\color{magenta}]{\#}
}
\bibliographystyle{agsm}