-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinitions.tex
executable file
·102 lines (85 loc) · 3.19 KB
/
definitions.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
\geometry{a4paper,%
portrait,%
inner=5cm, outer=4cm,%
marginparwidth=0cm, marginparsep=0cm,
headheight=0.5cm,%
headsep=0.5cm,%
footskip=2cm,%
top=3cm,%
bottom=3cm,%
pdftex,%
includeheadfoot}
%header
\clearpairofpagestyles
\ohead{\pagemark}
\ihead{\headmark}
\cfoot[\pagemark]{}
\renewcommand*{\partpagestyle}{empty}
%cpp makro
\def\Cpp{C{}\texttt{++}\ }
%footnote style letters
\renewcommand*{\thefootnote}{\alph{footnote}}
%custom colours
\definecolor{mygreen}{RGB}{0,203,0}
\definecolor{myorange}{RGB}{255,165,0}
%captions
\captionsetup{format=plain,labelfont=bf,labelsep=space}
%redefine supercite command with square brackets
\DeclareCiteCommand{\supercite}[\mkbibsuperscript]
{%
\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim%
\bibopenbracket%
}%
{%
\usebibmacro{citeindex}%
\usebibmacro{cite:comp}%
}%
{}%
{%
\usebibmacro{cite:dump}%
\bibclosebracket%
}%
%tikz setups
\tikzstyle{every picture}+=[remember picture]
\tikzset{main node/.style={circle,fill=blue!20,draw,minimum size=.75cm,inner sep=0pt}}
\usetikzlibrary{shapes.arrows,positioning,matrix,shapes,backgrounds,arrows,calc,fit,decorations.markings,decorations}
\tikzstyle{decision} = [diamond, draw, fill=blue!20, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!20, text width=5em, text centered, rounded corners, minimum height=2em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, circle, text centered, text width=5em, fill=red!20, node distance=3cm, minimum height=2em, inner sep=0]
\tikzstyle{directed} = [postaction={decorate,decoration={markings,
mark=at position .65 with {\arrow[scale=1]{stealth}}}}]
\tikzstyle{bidirected} = [postaction={decorate,decoration={markings,
mark=at position .65 with {\arrow[scale=1]{stealth}},
mark=at position .35 with {\arrowreversed[scale=1]{stealth}}}}]
\tikzstyle{reversed} = [postaction={decorate,decoration={markings,
mark=at position .35 with {\arrowreversed[scale=1]{stealth}}}}]
\tikzstyle{crossed} = [postaction={decorate,decoration={markings,
mark=at position .5 with {
\draw (-2pt,-2pt) -- (2pt,2pt);
\draw (2pt,-2pt) -- (-2pt,2pt);
}}}]
%setup for verbatim
\fvset{gobble=0}
%setup for part pages
\renewcommand\partheadmidvskip{%
\par\nobreak\vspace*{\baselineskip}%
\pgfornament[width=.8\textwidth]{88}%
\par\nobreak\vspace*{\baselineskip}%
}
%hyperlink style
\hypersetup{linktocpage=true,pdfborderstyle={/S/U/W 1}}
%ThreePartTable footnote settings
\appto\TPTnoteSettings{\footnotesize}
\DeclareTOCStyleEntry[
beforeskip=.4em plus 1pt,% default is 1em plus 1pt
pagenumberformat=\textbf
]{tocline}{chapter}
%\pgfkeys{/pgf/plot/gnuplot call={cd build && gnuplot}}
\DeclareBibliographyAlias{software}{online}
\lstset{language=[11]C++,
tabsize=2,
basicstyle=\ttfamily,
frame=lines}
\setlength\emergencystretch{\hsize}\hbadness=10000 %instead of \sloppy