summaryrefslogtreecommitdiff
path: root/style/style.tex
blob: 9bae9cf8673166a64e7f627c49e9674419450889 (plain)
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
\usepackage[T1]{fontenc}
\usepackage[inline]{enumitem}
\usepackage[dvipsnames]{xcolor}
\usepackage[many]{tcolorbox}
\usepackage[page,toc,titletoc,title]{appendix}
\usepackage[nottoc,notlof,notlot]{tocbibind}
\usepackage{geometry, tocloft, xspace, lipsum, booktabs, caption, setspace, vmargin, graphicx, pifont, twemojis, float, array, ipsum, circledsteps, inconsolata, listings, hyperref, fdsymbol, cleveref}

% For the font.
%\usepackage{fouriernc}

\renewcommand\cftchapfont{\bfseries}
\renewcommand\cftchappagefont{\bfseries}
\setlength{\cftbeforechapskip}{5pt}
\renewcommand\baselinestretch{1.1}
\preto\chapter{\glsresetall}

% Glossaries loads amsmath
\usepackage[acronym, toc]{glossaries}

\textwidth 15cm
\textheight 22cm
\parindent 10pt
\parskip 0pt
\oddsidemargin 2.5cm
\evensidemargin 2.5cm

\hypersetup{
	colorlinks=true,
	citecolor=Green!90!white,
	linkcolor=Blue!90!white
}

\newcommand{\ie}{\emph{i.e.,}\xspace}
\newcommand{\eg}{\emph{e.g.,}\xspace}
\newcommand{\etc}{\emph{etc.}\xspace}
\newcommand{\etal}{\emph{et~al.}\xspace}
\newcommand{\todo}[1]{\textcolor{blue}{#1}}
\newcommand{\mysystem}{\emph{Sunfish}\xspace}

\newcommand\myCircled[1]{\scalebox{0.75}{\Circled[fill color=black,inner color=white]{{\sffamily#1}}}}

\newcommand\grayCircled[1]{\scalebox{0.75}{\Circled[fill color=gray,inner color=white]{{\sffamily#1}}}}

\newcommand{\code}[1]{\texttt{#1}}

\newcommand{\BibTeX}{\textsc{B\kern-0.1emi\kern-0.017emb}\kern-0.15em\TeX\xspace}

\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.2,0.2,0.2}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.94,0.9725,1}

\lstdefinestyle{mystyle}{
	backgroundcolor=\color{backcolour},
	commentstyle=\color{codegreen},
	keywordstyle=\color{magenta},
	numberstyle=\sffamily\tiny\color{codegray},
	stringstyle=\color{codepurple},
	basicstyle=\ttfamily\footnotesize,
	breakatwhitespace=false,
	breaklines=true,
	captionpos=b,
	keepspaces=true,
	numbers=left,
	numbersep=5pt,
	showspaces=false,
	showstringspaces=false,
	showtabs=false,
	tabsize=2,
}

\lstset{style=mystyle}

\tcbuselibrary{skins, breakable}
\usetikzlibrary{calc}
\newtcolorbox{mynote}{%
	enhanced,
	breakable,
	boxrule = 0.2mm,
	colback = yellow!60!white,
	colframe=yellow!60!black,
	sharp corners,
	rounded corners = southeast,
	arc is angular,
	arc = 3mm,
	drop fuzzy shadow=gray!90,
	leftrule=0.6cm,
	overlay unbroken = {%
			\path[fill = tcbcolback!80!black,draw=yellow!60!black]
			([yshift = 3mm]interior.south east) -- ++(-0.4,-0.1) -- ++(0.1,-0.2);

			\node[inner sep=0pt,xshift=.3cm, anchor=center]
			at ($ (frame.north west)!.5!(frame.south west) $) {\Huge \textbf{\textcolor{white}{!}}};
		},
}