--- a/ChengsongTanPhdThesis/main.tex Wed Aug 31 12:51:53 2022 +0100
+++ b/ChengsongTanPhdThesis/main.tex Wed Aug 31 23:57:42 2022 +0100
@@ -44,6 +44,10 @@
\usepackage{cancel}
+\usepackage{listings}
+\usepackage{xcolor}
+\usepackage{beramono}
+
\usepackage{verbatim}
\usepackage{float}
\usepackage{mathpazo} % Use the Palatino font by default
@@ -110,6 +114,43 @@
\DeclareCaptionType{mytype}[Illustration][]
\newenvironment{envForCaption}{\captionsetup{type=mytype} }{}
+\pgfplotsset{
+ myplotstyle/.style={
+ legend style={draw=none, font=\small},
+ legend cell align=left,
+ legend pos=north east,
+ ylabel style={align=center, font=\bfseries\boldmath},
+ xlabel style={align=center, font=\bfseries\boldmath},
+ x tick label style={font=\bfseries\boldmath},
+ y tick label style={font=\bfseries\boldmath},
+ scaled ticks=true,
+ every axis plot/.append style={thick},
+ },
+}
+
+\definecolor{dkgreen}{rgb}{0,0.6,0}
+\definecolor{gray}{rgb}{0.5,0.5,0.5}
+\definecolor{mauve}{rgb}{0.58,0,0.82}
+\lstdefinestyle{myScalastyle}{
+ frame=tb,
+ language=scala,
+ aboveskip=3mm,
+ belowskip=3mm,
+ showstringspaces=false,
+ columns=flexible,
+ basicstyle={\small\ttfamily},
+ numbers=none,
+ numberstyle=\tiny\color{gray},
+ keywordstyle=\color{blue},
+ commentstyle=\color{dkgreen},
+ stringstyle=\color{mauve},
+ frame=single,
+ breaklines=true,
+ breakatwhitespace=true,
+ tabsize=3,
+}
+
+
%----------------------------------------------------------------------------------------
% MARGIN SETTINGS
%----------------------------------------------------------------------------------------