|
|
|
@ -5,11 +5,13 @@
|
|
|
|
|
\usepackage[T1]{fontenc}
|
|
|
|
|
\usepackage[a4paper, margin=0.7in]{geometry}
|
|
|
|
|
\usepackage[french]{babel}
|
|
|
|
|
\usepackage{xspace} % From https://tex.stackexchange.com/questions/150640/missing-space-after-guillemets
|
|
|
|
|
\usepackage{amsmath}
|
|
|
|
|
\usepackage{amsfonts}
|
|
|
|
|
\usepackage{mathtools}
|
|
|
|
|
\usepackage{mathabx}
|
|
|
|
|
\usepackage{listings}
|
|
|
|
|
\usepackage[many]{tcolorbox}
|
|
|
|
|
\usepackage{xcolor}
|
|
|
|
|
\usepackage{float}
|
|
|
|
|
\usepackage{cite}
|
|
|
|
@ -32,11 +34,27 @@
|
|
|
|
|
% Requires xelatex to run (or maybe also lualatex)
|
|
|
|
|
\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
|
|
|
|
|
\lstdefinelanguage{JavaScript}{
|
|
|
|
|
keywords={
|
|
|
|
|
typeof, new,
|
|
|
|
|
abstract, class, interface, type, function, return,
|
|
|
|
|
async, await,
|
|
|
|
|
try, catch, finally,
|
|
|
|
|
switch, case, break,
|
|
|
|
|
var, let, const,
|
|
|
|
@ -44,13 +62,13 @@
|
|
|
|
|
for, while, in, of, do,
|
|
|
|
|
true, false, null, undefined
|
|
|
|
|
},
|
|
|
|
|
keywordstyle=\color{blue}\bfseries,
|
|
|
|
|
keywordstyle=\color{kwColor}\FiraCodeSB,
|
|
|
|
|
ndkeywords={
|
|
|
|
|
export, implements, import, this,
|
|
|
|
|
private, public, readonly, constructor,
|
|
|
|
|
@Inject, @Injectable, @Controller, @Module
|
|
|
|
|
},
|
|
|
|
|
ndkeywordstyle=\color{darkgray}\bfseries,
|
|
|
|
|
ndkeywordstyle=\color{darkgray}\FiraCodeSB,
|
|
|
|
|
identifierstyle=\color{black},
|
|
|
|
|
sensitive=false,
|
|
|
|
|
comment=[l]{//},
|
|
|
|
@ -62,15 +80,16 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
\lstdefinelanguage{hbs}{
|
|
|
|
|
morecomment=[s]{\{\{!}{!\}\}},
|
|
|
|
|
% morecomment=[s]{\{\{!}{!\}\}},
|
|
|
|
|
morecomment=[s]{<!--}{-->},
|
|
|
|
|
commentstyle=\color{purple}\ttfamily,
|
|
|
|
|
stringstyle=\color{red}\ttfamily,
|
|
|
|
|
morestring=[s]{\{\{}{\}\}},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
\definecolor{bgColor}{rgb}{0.95,0.94,0.92}
|
|
|
|
|
\lstdefinestyle{JavaScript}{
|
|
|
|
|
backgroundcolor=\color{bgColor},
|
|
|
|
|
\lstset{
|
|
|
|
|
% backgroundcolor=\color{bgColor},
|
|
|
|
|
commentstyle=\color{gray},
|
|
|
|
|
keywordstyle=\color{magenta},
|
|
|
|
|
numberstyle=\tiny\color{gray},
|
|
|
|
@ -86,7 +105,13 @@
|
|
|
|
|
showstringspaces=false,
|
|
|
|
|
showtabs=false,
|
|
|
|
|
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/}}
|
|
|
|
|