summaryrefslogtreecommitdiff
path: root/style/style.tex
blob: 6a328cc33d35d8146efc800ae22c8ce49b35f891 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
\usepackage[T1]{fontenc}
\usepackage[inline]{enumitem}
\usepackage[dvipsnames]{xcolor}
\usepackage[many]{tcolorbox}
\tcbuselibrary{skins, breakable}
\usetikzlibrary{calc}
% Specified separately in case margins need to be changed.
\usepackage{geometry}

% For a nice table of contents.
\usepackage{tocloft}
% For the font.
\usepackage{fouriernc}

% fdsymbol can be loaded together with pifont
\usepackage{fdsymbol}
% For beautiful appendices
\usepackage[page,toc,titletoc,title]{appendix}

% This removes the self-reference to toc, lof, lot in the toc.
\usepackage[nottoc,notlof,notlot]{tocbibind}

\usepackage{xspace, lipsum, booktabs, caption, setspace, vmargin, graphicx, pifont, twemojis, float, array, ipsum, circledsteps, inconsolata, listings}

% Must be separately in case hidelinks=true option is needed.
\usepackage{hyperref}

% Makes the TOC title font and number in a bold font.
\renewcommand\cftchapfont{\bfseries}
\renewcommand\cftchappagefont{\bfseries}
% Makes the chapter spacing in the TOC less.
\setlength{\cftbeforechapskip}{5pt}

% Specifies the spacing between the lines.
\renewcommand\baselinestretch{1.1}
% Glossaries loads amsmath
\usepackage[acronym, toc]{glossaries}

% For better references. Must be loaded the last.
\usepackage{cleveref}
\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}

\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}{!}}};
		},
}