|
|
@ -5,11 +5,13 @@
|
|
|
|
\usepackage[T1]{fontenc}
|
|
|
|
\usepackage[T1]{fontenc}
|
|
|
|
\usepackage[a4paper, margin=0.7in]{geometry}
|
|
|
|
\usepackage[a4paper, margin=0.7in]{geometry}
|
|
|
|
\usepackage[french]{babel}
|
|
|
|
\usepackage[french]{babel}
|
|
|
|
|
|
|
|
\usepackage{xspace} % From https://tex.stackexchange.com/questions/150640/missing-space-after-guillemets
|
|
|
|
\usepackage{amsmath}
|
|
|
|
\usepackage{amsmath}
|
|
|
|
\usepackage{amsfonts}
|
|
|
|
\usepackage{amsfonts}
|
|
|
|
\usepackage{mathtools}
|
|
|
|
\usepackage{mathtools}
|
|
|
|
\usepackage{mathabx}
|
|
|
|
\usepackage{mathabx}
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{listings}
|
|
|
|
|
|
|
|
\usepackage[many]{tcolorbox}
|
|
|
|
\usepackage{xcolor}
|
|
|
|
\usepackage{xcolor}
|
|
|
|
\usepackage{float}
|
|
|
|
\usepackage{float}
|
|
|
|
\usepackage{cite}
|
|
|
|
\usepackage{cite}
|
|
|
@ -32,11 +34,27 @@
|
|
|
|
% Requires xelatex to run (or maybe also lualatex)
|
|
|
|
% Requires xelatex to run (or maybe also lualatex)
|
|
|
|
\usepackage{utbmcovers}
|
|
|
|
\usepackage{utbmcovers}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\setmonofont[Contextuals={Alternate}]{Fira Code}
|
|
|
|
|
|
|
|
\newfontfamily{\FiraCode}[Contextuals={Alternate}]{Fira Code}
|
|
|
|
|
|
|
|
\IfFontExistsTF{Fira Code SemiBold}{
|
|
|
|
|
|
|
|
\newfontfamily{\FiraCodeSB}[UprightFont={* SemiBold}]{Fira Code}
|
|
|
|
|
|
|
|
}{
|
|
|
|
|
|
|
|
\IfFontExistsTF{Fira Code Semi-Bold}{
|
|
|
|
|
|
|
|
\newfontfamily{\FiraCodeSB}[UprightFont={* Semi-Bold}]{Fira Code}
|
|
|
|
|
|
|
|
}{
|
|
|
|
|
|
|
|
\newfontfamily{\FiraCodeSB}[UprightFont={* Semibold}]{Fira Code}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\definecolor{kwColor}{rgb}{0.15,0.21,0.87}
|
|
|
|
|
|
|
|
|
|
|
|
% From https://tex.stackexchange.com/questions/89574/language-option-supported-in-listings
|
|
|
|
% From https://tex.stackexchange.com/questions/89574/language-option-supported-in-listings
|
|
|
|
\lstdefinelanguage{JavaScript}{
|
|
|
|
\lstdefinelanguage{JavaScript}{
|
|
|
|
keywords={
|
|
|
|
keywords={
|
|
|
|
typeof, new,
|
|
|
|
typeof, new,
|
|
|
|
abstract, class, interface, type, function, return,
|
|
|
|
abstract, class, interface, type, function, return,
|
|
|
|
|
|
|
|
async, await,
|
|
|
|
try, catch, finally,
|
|
|
|
try, catch, finally,
|
|
|
|
switch, case, break,
|
|
|
|
switch, case, break,
|
|
|
|
var, let, const,
|
|
|
|
var, let, const,
|
|
|
@ -44,13 +62,13 @@
|
|
|
|
for, while, in, of, do,
|
|
|
|
for, while, in, of, do,
|
|
|
|
true, false, null, undefined
|
|
|
|
true, false, null, undefined
|
|
|
|
},
|
|
|
|
},
|
|
|
|
keywordstyle=\color{blue}\bfseries,
|
|
|
|
keywordstyle=\color{kwColor}\FiraCodeSB,
|
|
|
|
ndkeywords={
|
|
|
|
ndkeywords={
|
|
|
|
export, implements, import, this,
|
|
|
|
export, implements, import, this,
|
|
|
|
private, public, readonly, constructor,
|
|
|
|
private, public, readonly, constructor,
|
|
|
|
@Inject, @Injectable, @Controller, @Module
|
|
|
|
@Inject, @Injectable, @Controller, @Module
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ndkeywordstyle=\color{darkgray}\bfseries,
|
|
|
|
ndkeywordstyle=\color{darkgray}\FiraCodeSB,
|
|
|
|
identifierstyle=\color{black},
|
|
|
|
identifierstyle=\color{black},
|
|
|
|
sensitive=false,
|
|
|
|
sensitive=false,
|
|
|
|
comment=[l]{//},
|
|
|
|
comment=[l]{//},
|
|
|
@ -62,15 +80,16 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
\lstdefinelanguage{hbs}{
|
|
|
|
\lstdefinelanguage{hbs}{
|
|
|
|
morecomment=[s]{\{\{!}{!\}\}},
|
|
|
|
% morecomment=[s]{\{\{!}{!\}\}},
|
|
|
|
|
|
|
|
morecomment=[s]{<!--}{-->},
|
|
|
|
commentstyle=\color{purple}\ttfamily,
|
|
|
|
commentstyle=\color{purple}\ttfamily,
|
|
|
|
stringstyle=\color{red}\ttfamily,
|
|
|
|
stringstyle=\color{red}\ttfamily,
|
|
|
|
morestring=[s]{\{\{}{\}\}},
|
|
|
|
morestring=[s]{\{\{}{\}\}},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
\definecolor{bgColor}{rgb}{0.95,0.94,0.92}
|
|
|
|
\definecolor{bgColor}{rgb}{0.95,0.94,0.92}
|
|
|
|
\lstdefinestyle{JavaScript}{
|
|
|
|
\lstset{
|
|
|
|
backgroundcolor=\color{bgColor},
|
|
|
|
% backgroundcolor=\color{bgColor},
|
|
|
|
commentstyle=\color{gray},
|
|
|
|
commentstyle=\color{gray},
|
|
|
|
keywordstyle=\color{magenta},
|
|
|
|
keywordstyle=\color{magenta},
|
|
|
|
numberstyle=\tiny\color{gray},
|
|
|
|
numberstyle=\tiny\color{gray},
|
|
|
@ -86,7 +105,13 @@
|
|
|
|
showstringspaces=false,
|
|
|
|
showstringspaces=false,
|
|
|
|
showtabs=false,
|
|
|
|
showtabs=false,
|
|
|
|
tabsize=2,
|
|
|
|
tabsize=2,
|
|
|
|
language=JavaScript
|
|
|
|
}
|
|
|
|
|
|
|
|
\tcolorboxenvironment{lstlisting}{
|
|
|
|
|
|
|
|
spartan,
|
|
|
|
|
|
|
|
frame empty,
|
|
|
|
|
|
|
|
boxsep=0mm,
|
|
|
|
|
|
|
|
left=1mm,right=1mm,top=-1mm,bottom=-1mm,
|
|
|
|
|
|
|
|
colback=bgColor,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
\graphicspath{{build/figures/}{images/}}
|
|
|
|
\graphicspath{{build/figures/}{images/}}
|
|
|
|