-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinformatik-tools.sty
executable file
·89 lines (80 loc) · 1.83 KB
/
informatik-tools.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
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{informatik-tools}
\RequirePackage{xcolor}
\RequirePackage{listings}
\RequirePackage[many]{tcolorbox}
%\RequirePackage{tikz-uml}
\tcbuselibrary{listings,skins}
%\tikzumlset{fill class=white}
%\tikzumlset{fill template=white}
%\tikzumlset{fill note=white}
\definecolor{processingGreen}{HTML}{33997E}
\definecolor{processingOrange}{HTML}{E2671A}
\definecolor{processingGray}{HTML}{666666}
\definecolor{processingPurple}{HTML}{7D4793}
\lstdefinestyle{processing}{
language=Java,
frame=none,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=left,
numberstyle=\tiny\color{processingGray},
keywordstyle=\color{processingGreen},
commentstyle=\color{processingGray},
stringstyle=\color{processingPurple},
emph={String, int, float},
emphstyle=\color{processingOrange},
breaklines=false,
breakatwhitespace=true,
tabsize=3,
numbersep=8pt,
}
\lstdefinestyle{processingSmall}{
language=Java,
frame=none,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\footnotesize\ttfamily},
numbers=left,
numberstyle=\tiny\color{processingGray},
keywordstyle=\color{processingGreen},
commentstyle=\color{processingGray},
stringstyle=\color{processingPurple},
emph={String, int, float},
emphstyle=\color{processingOrange},
breaklines=false,
breakatwhitespace=true,
tabsize=3,
numbersep=8pt,
}
\newtcblisting{code}[1]{
opacityback=0,
enhanced jigsaw,
left=12pt,
right=4pt,
bottom=-4pt,
top=-4pt,
arc=0pt,
boxrule=0pt,
listing only,
listing style=processing,
#1
}
\newtcblisting{codeSmall}[1]{
opacityback=0,
enhanced jigsaw,
left=12pt,
right=4pt,
bottom=-4pt,
top=-4pt,
arc=0pt,
boxrule=0pt,
listing only,
listing style=processingSmall,
#1
}