-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
142 lines (124 loc) · 4.22 KB
/
preamble.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
\documentclass[ngerman]{scrartcl}
\newcommand{\authA}{Daniel Scheiermann}
\newcommand{\matA}{3227680}
\newcommand{\authB}{Felix Springer}
\newcommand{\matB}{10002537}
\newcommand{\grpnr}{SLOT}
\newcommand{\Versuchsnummer}{IQ18}
\newcommand{\Versuchsname}{Scanning Laser Optical Tomography}
%%%%%%%%%%%%%%%%%%Capitalized Color - start%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xparse}
\usepackage{xcolor}
\definecolor{luh_blue}{RGB}{0,80,155} %the blue of the luh logo
\ExplSyntaxOn
\NewDocumentCommand{\colorcap}{ O{blue} m }
{
\sheljohn_colorcap:nn { #1 } { #2 }
}
\tl_new:N \l__sheljohn_colorcap_input_tl
\cs_new_protected:Npn \sheljohn_colorcap:nn #1 #2
{
% store the string in a variable for usage with \regex_replace_all:nnN
\tl_set:Nn \l__sheljohn_colorcap_input_tl { #2 }
\regex_replace_all:nnN
{ ([A-Z]+) } % search a capital letter (or more)
{ \c{textcolor}\cB\{#1\cE\}\cB\{\1\cE\} } % replace the match with \textcolor{#1}{<match>}
\l__sheljohn_colorcap_input_tl
\tl_use:N \l__sheljohn_colorcap_input_tl
}
\ExplSyntaxOff
%%%%%%%%%%%%%%%%%%Capitalized Color - end%%%%%%%%%%%%%%%%%%%%%%%%
%---configure pagelayout
\KOMAoptions{ % read documentation for KOMAScript providing the documentclass scrartcl
DIV=11,
BCOR=0mm,
paper=a4,
fontsize=12pt,
parskip=half,
twoside=false,
titlepage=true
}
%\usepackage[ %Set linespacing
%singlespacing %onehalfspacing,doublespacing
%]{setspace}
\usepackage[headsepline,footsepline,automark,pagestyleset=KOMA-Script,markcase=ignoreuppercase]{scrlayer-scrpage} %Configure headline and footer
\clearscrheadings
\setlength{\headheight}{3.5\baselineskip}
\ihead[]{\authB~(\matB)\\\authA~(\matA)}
\ohead{\includegraphics[height=13pt]{IMAGE/luh_logo.png} \\ \Versuchsnummer $ $ \grpnr}
\cfoot{\vspace{-0.75cm}\pagemark}
\pagestyle{scrheadings}
%better positioning of floatings
\renewcommand{\floatpagefraction}{.75} % standard: .5
\renewcommand{\textfraction}{.1} % standard: .2
\renewcommand{\topfraction}{.8} % standard: .7
\renewcommand{\bottomfraction}{.5} % standard: .3
\setcounter{topnumber}{3} % standard: 2
\setcounter{bottomnumber}{2} % standard: 1
\setcounter{totalnumber}{5} % standard: 3
%---Language and umlauts
\usepackage[utf8]{inputenc} %Set UTF-8 encoding, enables ä,ö,ü etc.
\usepackage[ngerman]{babel} %Set document language to ngerman (new german)
%\usepackage[% improved hyphenation
%expansion=true,
%protrusion=true
%]{microtype}
\usepackage{subcaption}
%\usepackage{subfig} %subcaption includes subfig
%\captionsetup[subfigure]{list=true, font=large, labelfont=bf,
%labelformat=brace, position=top}
%---Mathmatics (AMS packages )
\usepackage{amsmath} %generell math enviorments e.g. align
\usepackage{amsfonts}
\usepackage{amssymb}
%\usepackage{amsthm} %math theorems
%\usepackage{upgreek}%provide special form of greek letters e.g. \upmu
\usepackage{float}
%---Units
\usepackage[decimalsymbol=comma]{siunitx}
%\usepackage{units}
%\usepackage[numbers]{natbib}
%\usepackage{pdfpages}
\usepackage{textcomp}
\usepackage{longtable}
%\usepackage{braket}
%\usepackage{color}
%\renewcommand{\arraystretch}{1.2} % Standard-Zeilenhöhe einstellen
%---tables and imgaes
\usepackage{graphicx} %provide \includegraphics[options]{name}
%\usepackage{epstopdf} %enable the use of eps-graphics
\usepackage[hypcap]{caption} %captions out of floating-enviorments(figure,table)
\usepackage{booktabs} %extra lines in tabulars
%\usepackage{flafter} %Place floating-enviorments after references.
%\usepackage[ %
%section %latest ancor for floating-enviorments
%]{placeins}
%\usepackage{verbatim} %long comments \begin{comment} ...\end{comment}
%---Hyperlinks
\usepackage{hyperref} %create table of content and references as links
\hypersetup{
%
%Colors
colorlinks=true,
breaklinks=true,
citecolor=blue,
linkcolor=black,
menucolor=red,
urlcolor=cyan,
%
%pdf-bookmarks
bookmarksopen=false,
bookmarksopenlevel=0,
%
%pdf-data
% pdftitle={\titel},
% pdfauthor={\writer},
% pdfcreator={\writer},
% pdfsubject={\titel},
% pdfkeywords={\titel}
%
%misc
plainpages=false,% zur korrekten Erstellung der Bookmarks
hypertexnames=false,% zur korrekten Erstellung der Bookmarks
% hyperindex=true,
}