-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.tex
More file actions
190 lines (165 loc) · 4.8 KB
/
template.tex
File metadata and controls
190 lines (165 loc) · 4.8 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
\documentclass[a4paper, landscape , 8pt]{scrartcl}
% use language german
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, ngerman]{babel} % \selectlanguage{english} if needed
\usepackage{lmodern} % use modern latin fonts
% format
\usepackage{geometry}
\geometry{top=1.2cm,left=0.4cm,right=0.4cm}
%autor
\usepackage{authblk}
% math
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{enumitem}
% graphic
\usepackage{graphicx}
\graphicspath{{graphic/}}
%colors
\usepackage{xcolor}
% Multi Columns
\usepackage{multicol}
%compact items
\usepackage{paralist}
%define header and footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[RO]{Zindel Marius}
\fancyhead[LO]{\TITLE}
\fancyfoot[RO]{29.08.2020}
\fancyfoot[LO]{Created with \LaTeX}
\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0pt}
\headsep = -9pt
\footskip = 0pt
\textheight = 563pt
%define section color and size
\addtokomafont{section}{\color{sectioncolor}\small\rule{\linewidth}{.5pt}\vspace{-2pt}\\}
\addtokomafont{subsection}{\color{subsectioncolor}\small}
\addtokomafont{subsubsection}{\color{subsubsectioncolor}\small}
%no section numbers
\setcounter{secnumdepth}{0}
%define section spacing
\RedeclareSectionCommands[
afterindent = false,
beforeskip = 0pt,
afterskip = .1pt
]{section,subsection,subsubsection}
%define color
\definecolor{sectioncolor}{RGB}{1, 101, 163}
\definecolor{subsectioncolor}{RGB}{1, 101, 163}
\definecolor{subsubsectioncolor}{RGB}{0, 0, 0}
\definecolor{b}{RGB}{0, 120, 255} %Default highlite color
\definecolor{p}{RGB}{0, 43, 54} %Dark page color
\definecolor{t}{RGB}{131, 148, 150} %Dark text color
\definecolor{darkgreen}{RGB}{0,150,0}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{DarkPurple}{rgb}{0.4, 0.1, 0.4}
\definecolor{DarkCyan}{rgb}{0.0, 0.5, 0.4}
\definecolor{LightLime}{rgb}{0.3, 0.5, 0.4}
\definecolor{Blue}{rgb}{0.0, 0.0, 1.0}
\definecolor{h}{RGB}{1, 101, 163}
% Code Listings
\usepackage{listings}
\usepackage{color}
\usepackage{beramono}
\usepackage{hyperref}
\hypersetup{
colorlinks,
linkcolor={black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
\definecolor{bluekeywords}{rgb}{0,0,1}
\definecolor{greencomments}{rgb}{0,0.5,0}
\definecolor{redstrings}{rgb}{0.64,0.08,0.08}
\definecolor{xmlcomments}{rgb}{0.5,0.5,0.5}
\definecolor{types}{rgb}{0.17,0.57,0.68}
\lstdefinestyle{visual-studio-style}{
language=[Sharp]C,
basicstyle=\ttfamily\scriptsize,
columns=flexible,
showstringspaces=false,
basicstyle=\footnotesize\ttfamily,
commentstyle=\color{greencomments},
morekeywords={partial, var, value, get, set},
keywordstyle=\bfseries\color{bluekeywords},
stringstyle=\color{redstrings},
breaklines=true,
breakatwhitespace=true,
tabsize=4,
numbers=none,
numberstyle=\tiny\color{black},
frame=none,
showspaces=false,
showtabs=false,
escapeinside={£}{£},
}
\lstdefinestyle{cevelop-style}{
language=C++,
basicstyle=\ttfamily\scriptsize,
columns=flexible,
showstringspaces=false,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\bfseries\color{DarkPurple},
commentstyle=\color{LightLime},
stringstyle=\color{Blue},
escapeinside={£}{£}, % latex scope within code
breaklines=true,
breakatwhitespace=true,
showspaces=false,
showtabs=false,
tabsize=4,
morekeywords={include,ifndef,define},
numbers=none,
numberstyle=\tiny\color{black},
frame=none,
}
\lstdefinestyle{eclipse-style}{
language=C,
showstringspaces=false,
basicstyle=\ttfamily\scriptsize,
keywordstyle=\color{blue}\ttfamily,
stringstyle=\color{red}\ttfamily,
commentstyle=\color{darkgreen}\ttfamily,
escapeinside={£}{£}, % latex scope within code
breaklines=true,
breakatwhitespace=true,
showspaces=false,
showtabs=false,
tabsize=4,
morekeywords={length},
numbers=none,
numberstyle=\tiny\color{black},
frame=top,
}
\lstset{style=eclipse-style}
% Theorems \begin{mytheo}{title}{label}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem[number within=section]{definiton}{Definition}%
{fonttitle=\bfseries}{def}
\newtcbtheorem[number within=section]{remember}{Merke}%
{fonttitle=\bfseries}{rem}
\newtcbtheorem[number within=section]{hint}{Hinweis}%
{fonttitle=\bfseries}{hnt}
% new section -> new page
% \let\stdsection\section
% \renewcommand\section{\clearpage\stdsection}
% Front page
\newcommand{\AUTHOR}{Marius Zindel}
\newcommand{\INSTITUTE}{Hochschule für Technik Rapperswil}
%dotted rule
\usepackage{dashrule}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\newcommand{\drule}[3][0]{
\tikz[baseline]{\path[decoration={markings,
mark=between positions 0 and 1 step 2*#3
with {\node[fill, circle, minimum width=#3, inner sep=0pt, anchor=south west] {};}},postaction={decorate}] (0,#1) -- ++(#2,0);}}
%no indentation
\setlength{\parindent}{0cm}