\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}{4pt}

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

